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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]