Problem with file_exists (Newbie Q)

From: Date: Sun, 13 Oct 2002 20:21:27 +0000
Subject: Problem with file_exists (Newbie Q)
Groups: php.dev 
Request: Send a blank email to php-dev+get-89432@lists.php.net to get a copy of this message
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!

« previous php.dev (#89432) next »