Re: Problem with file_exists (Newbie Q)
| From: | Marco Tabini | Date: | Mon, 14 Oct 2002 13:13:35 +0000 |
| Subject: | Re: Problem with file_exists (Newbie Q) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89440@lists.php.net to get a copy of this message | ||
You'll have to use the CURL library:
http://ca.php.net/manual/en/ref.curl.php
Cheers,
Marco
On Sun, 2002-10-13 at 16:21, Adrian Slusarczyk wrote:
> Hi,
>
> I have the following problem: In a function, I want to verify whether a
> file exists before I go on, and if it doesnŽt, return false and stop right
> there. So I tried
>
> if(!file_exists($my_file)) {
> return false;
> exit;
> }
>
> But since $my_file is a URL, it doesnŽt work. Does anybody know how to do
> this so it works with URLs, i.e. w/o using file_exists() ?
>
> Thx!
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>