NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Browser based ping

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-05-2004, 02:59 AM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: May 2004
Location: Devon, UK
Posts: 76
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, 09:15 AM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
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, 09:37 AM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: May 2004
Location: Devon, UK
Posts: 76
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, 01:17 PM   #4 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
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, 01:08 AM THREAD STARTER               #5 (permalink)
NamePros Member
Join Date: May 2004
Location: Devon, UK
Posts: 76
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, 11:19 AM   #6 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
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
????: NamePros.com http://www.namepros.com/programming/29421-browser-based-ping.html
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 11:22 AM.
adam_uk is offline  
Old 05-09-2004, 04:01 AM THREAD STARTER               #7 (permalink)
NamePros Member
Join Date: May 2004
Location: Devon, UK
Posts: 76
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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:26 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger