note 71325 rejected from function.fopen by bobby

From: Date: Wed, 22 Nov 2006 21:11:13 +0000
Subject: note 71325 rejected from function.fopen by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-119989@lists.php.net to get a copy of this message
Note Submitter: anastas at instimul dot com ---- I'm working with a network, trying to get a client computer to access a text file on the server (the network uses Novell software). The server's /programs directory is mapped to P: in the server and when I go to P:/EXT.TXT in Internet Explorer, it opens the file, but when I use fopen() it doesn't open the file. I know for a fact that my script is functional because when I change the fopen() arguments to point to a local file, it works correctly. <?php $dirpath = "P:\EXT.TXT"; $fh = fopen($dirpath,"rt"); $fdata = fread($fh,filesize($dirpath)); echo($fdata); fclose($fh); ?>

« previous php.notes (#119989) next »