note 41585 deleted from function.fopen by nlopess

From: Date: Fri, 16 Apr 2004 08:48:26 +0000
Subject: note 41585 deleted from function.fopen by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-68191@lists.php.net to get a copy of this message
Note Submitter: amedici@fr.netcentrex.net ---- // open a file if existing without any display in standalone or web version <?php // try to open a file in read only $handle = @fopen("/usr/local/file.txt", "r"); if(!$handle){ $fileExist = false; print "Source file '/usr/local/file.txt' not found"; exit(); } else{ fclose($handle) $fileExist = true; } ?>

« previous php.notes (#68191) next »