file_exists for URLs

From: Date: Mon, 14 Oct 2002 07:55:46 +0000
Subject: file_exists for URLs
Groups: php.general 
Request: Send a blank email to php-general+get-119850@lists.php.net to get a copy of this message
Hi, I'm kinda new to PHP and 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.general (#119850) next »