Re: HTTP ERRORS Boolean

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/7/06, Rodrigo de Oliveira Costa <rodrigo@xxxxxxxxxxxxx> wrote:
Guys is there a way that I can call the func file("www.url.com") and
get a result true if there is a page and false if the page doesnt
exists (error 404)?

This would work, but will not specifically check for a 404:

$page = file('..');
if (!$page) {
 // does not exist or some other error
}

Rabin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux