note 89091 added to function.opendir
| From: | matt at osu1 dot php dot net | Date: | Sat, 21 Feb 2009 10:50:11 +0000 |
| Subject: | note 89091 added to function.opendir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150913@lists.php.net to get a copy of this message | ||
I tried it as in the post before described, but it still won't work. Maybe cause i'm using
an Apache-Server on Windows 2003 Server.
Now, i found a way that it works and i got access to the share. First of all, you need to set the
run user for Apache to a user that has access to the share (see in post before).
Then map your drive in the php script before you read the dir:
system('net use K: \\servername\sharename /user:username password /persistent:no');
$share = opendir('\\\\servername\\sharename');
....
----
Server IP: 217.13.201.10
Probable Submitter: 91.46.204.76
----
Manual Page -- http://www.php.net/manual/en/function.opendir.php
Edit -- https://master.php.net/note/edit/89091
Del: integrated -- https://master.php.net/note/delete/89091/integrated
Del: useless -- https://master.php.net/note/delete/89091/useless
Del: bad code -- https://master.php.net/note/delete/89091/bad+code
Del: spam -- https://master.php.net/note/delete/89091/spam
Del: non-english -- https://master.php.net/note/delete/89091/non-english
Del: in docs -- https://master.php.net/note/delete/89091/in+docs
Del: other reasons-- https://master.php.net/note/delete/89091
Reject -- https://master.php.net/note/reject/89091
Search -- https://master.php.net/manage/user-notes.php