strange error
| From: | n e t b r a i n | Date: | Sat, 14 Apr 2001 23:04:11 +0000 |
| Subject: | strange error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48558@lists.php.net to get a copy of this message | ||
Hi all,
I don't know why this (quick & dirty) small function:
function esiste_url($file){
@$fp=fopen($file,"r");
if(!$fp){return false;}else{return true;}
@fclose($fp);
}
//it checks if a url submit via form client exist
in two different pages:
a.php3 ---> works fine
b.php3 ---> produce an Internal Error Server
In both file, it's used like this:
if(esiste_url($url)==false){ etc. etc.
I'm sure (?!) that in b.php3 the error is due to this function 'cause w/o
it, the page b.php3 works fine ...
(I'm on linux box,apache,php3)
Any ideas??
Many thanks in advance
max