[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-05-2004, 01:59 AM   #1 (permalink)
NamePros Member
 
Join Date: May 2004
Location: Devon, UK
Posts: 76
145.00 NP$ (Donate)

Spirited is an unknown quantity at this point


Browser based ping

In order to show the benefits of a hosting company which has servers on fast connections in the UK (its intented client base) I would like a script that would allow the user to enter a URL and ping the server, pretty much exactly as you would do through command promt, except a (non savy) people-friendly version on a website.

It is important that the URL is pinged from the users computer, otherwise the exercise is pointless. Any suggestions?
Spirited is offline  
Old 05-05-2004, 08:15 AM   #2 (permalink)
Senior Member
 
Join Date: May 2003
Posts: 2,211
6,170.25 NP$ (Donate)

adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough

Breast Cancer
you can use php to execute the ping exe and it should print out the results

http://www.ahfb2000.com/php-scripts/view.php?num=47

maybe this will help
adam_uk is offline  
Old 05-05-2004, 08:37 AM   #3 (permalink)
NamePros Member
 
Join Date: May 2004
Location: Devon, UK
Posts: 76
145.00 NP$ (Donate)

Spirited is an unknown quantity at this point


Thanks Adam, unfortunatly it seems to ping from texas somewhere - though the hosting site does come through faster than one of its uk competitors who's servers are based in the states - the ping timed out for them.

Ah well it was a nice idea and thanks for looking
Spirited is offline  
Old 05-05-2004, 12:17 PM   #4 (permalink)
Senior Member
 
Join Date: May 2003
Posts: 2,211
6,170.25 NP$ (Donate)

adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough

Breast Cancer
you can download the script
adam_uk is offline  
Old 05-06-2004, 12:08 AM   #5 (permalink)
NamePros Member
 
Join Date: May 2004
Location: Devon, UK
Posts: 76
145.00 NP$ (Donate)

Spirited is an unknown quantity at this point


yep, but I assume that if I host it on our server that it will ping from our server, rather than from the users pc.

I wouldn't know where to start playing with it to try and change it, I'm not experianced in php.
Spirited is offline  
Old 05-06-2004, 10:19 AM   #6 (permalink)
Senior Member
 
Join Date: May 2003
Posts: 2,211
6,170.25 NP$ (Donate)

adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough

Breast Cancer
Quote:
Originally posted by Spirited
yep, but I assume that if I host it on our server that it will ping from our server, rather than from the users pc.

I wouldn't know where to start playing with it to try and change it, I'm not experianced in php.
but it would ping from the server yes but would still go down the same pipe so it would just be as fast?!


you wouldnt be able to do a ping from a user pc incase they are behind a router or firewall that doesnt allow ping requests and you wouldnt be able to get access to the ping exe file

the ping may actually even be slower if it was to work from there connection to the server if they are downloading

Last edited by adam_uk; 05-06-2004 at 10:22 AM.
adam_uk is offline  
Old 05-09-2004, 03:01 AM   #7 (permalink)
NamePros Member
 
Join Date: May 2004
Location: Devon, UK
Posts: 76
145.00 NP$ (Donate)

Spirited is an unknown quantity at this point


I appreciate that you have told me it is not really possible/practical to set up a ping from a users computer to the hosting company's server.

But there probably isn't a lot of point setting up a ping from the server to the server? Isn't it at least slightly dishonest for us show the speed of the servers by doing that?
Spirited is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 01:13 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85