Posted by Pierre Jelenc on 09/08/06 05:22
Jerry Stuckle <jstucklex@attglobal.net> writes:
> dawnerd wrote:
> > You can always ping the url. If you get a ping back then it is probably
> > valid :p
> Yes, but not getting a ping back doesn't mean it's not there. May
> servers (including mine) are set to ignore ICMP echo requests (pings).
Send a command to GET headers with http_head(). With ftp, I guess
something with ftp_nlist(). In either case, parse the result appro-
priately.
Pierre
--
Pierre Jelenc | New on Home Office Records: Ethan Lipton
| www.homeofficerecords.com www.ethanlipton.com
The Gigometer | Pepper Of The Earth: the HO blog
www.gigometer.com | www.homeofficerecords.com/blog
Navigation:
[Reply to this message]
|