Re: HTTP ERRORS Boolean
| From: | Rabin Vincent | Date: | Wed, 07 Jun 2006 07:31:27 +0000 |
| Subject: | Re: HTTP ERRORS Boolean | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237536@lists.php.net to get a copy of this message | ||
On 6/7/06, Rodrigo de Oliveira Costa <rodrigo@dorodrigo.com> 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