note 71325 added to function.fopen

From: Date: Wed, 22 Nov 2006 18:29:33 +0000
Subject: note 71325 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-119984@lists.php.net to get a copy of this message
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); ?> ---- Server IP: 216.194.113.175 Probable Submitter: 67.171.73.220 ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- https://master.php.net/note/edit/71325 Del: integrated -- https://master.php.net/note/delete/71325/integrated Del: useless -- https://master.php.net/note/delete/71325/useless Del: bad code -- https://master.php.net/note/delete/71325/bad+code Del: spam -- https://master.php.net/note/delete/71325/spam Del: non-english -- https://master.php.net/note/delete/71325/non-english Del: in docs -- https://master.php.net/note/delete/71325/in+docs Del: other reasons-- https://master.php.net/note/delete/71325 Reject -- https://master.php.net/note/reject/71325 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119984) next »