Re: [PHP] url exist?

2001-11-15 Thread jtjohnston
Yeah ... but you have to install the package. Thanks for the thought though. :) I'd looove to ask my admin ... but I know what his answer is/was/will be/would be :) always is. Chris Hobbs wrote: > Looks like you might be able to use the cURL extensions >

Re: [PHP] url exist?

2001-11-15 Thread jtjohnston
Thanks. Andrew Kirilenko wrote: > Hello! > > The simpliest way: > $f = @fopen("http://foobar.baz/somefile.ext";, "r"); > if ($f) > { > fclose($f); > echo "exists!" > } > else > { > echo "no exists!" > } > > Best regards, > Andrew Kirilenko. > > > -Original Message

Re: [PHP] url exist?

2001-11-15 Thread Chris Hobbs
Looks like you might be able to use the cURL extensions - there's a function called curl_getinfo which returns an array which includes http_code - you could check the value of that to see whether the file was available (http_code == 200), not found (

RE: [PHP] url exist?

2001-11-15 Thread Andrew Kirilenko
Hello! The simpliest way: $f = @fopen("http://foobar.baz/somefile.ext";, "r"); if ($f) { fclose($f); echo "exists!" } else { echo "no exists!" } Best regards, Andrew Kirilenko. > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Friday, Nov