internet connection?

A

Anonymous

Guest
Is there a way to check if internet is available on the server where apache is install? I would like to do this w/ php coding..
 
you could use php to open a file on another site, if it opens, than you have a connection, if it doesn't than you don't.
 
I'm farely new to PHP.. Do you have any code example? I know how to open a file on the local drive, but not on a website..


Thanks
 
Back
Top