FTP/HTTP wrappers and and server test
Posted: Thu Mar 20, 2008 5:45 am
I'm using file_get_contents to retreive a file both FTP and HTTP -- depending on circumstances.
Sometimes the HTTP is down and I need to detemrine if the HTTP server is operating, otherwise resort to FTP.
I'm not looking to check server response via PING I need to know specifically if the http or ftp servers are up and running. Can this still be done via PING and the command line??? I have tried prefixing the IP with ftp: and http: and that didn't seem to work...
No extensions like sockets, cURL, etc -- please and thank you
Cheers
Sometimes the HTTP is down and I need to detemrine if the HTTP server is operating, otherwise resort to FTP.
I'm not looking to check server response via PING I need to know specifically if the http or ftp servers are up and running. Can this still be done via PING and the command line??? I have tried prefixing the IP with ftp: and http: and that didn't seem to work...
No extensions like sockets, cURL, etc -- please and thank you
Cheers