opening files on remote PC ??
| From: | Rob | Date: | Wed, 21 May 2003 18:56:23 +0000 |
| Subject: | opening files on remote PC ?? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-20026@lists.php.net to get a copy of this message | ||
hi,
i'm trying to open and read a sequential file on a PC in my network.
$f1 = fopen("//laptop/homepage/manuals.txt","r");
It works just fine from the command-line (logged in as a user with
permissions on the remote PC), but when running the code using Mozilla
& Apache, i get this :
Warning: fopen(//laptop/homepage/manuals.txt) [function.fopen]: failed
to create stream: Permission denied in
e:\data\homepage\php\open_remote.php on line 6
unable to open file
So how do i set permissions on a remote file/directory when running
through a webserver ??
tia,
Rob