note 89091 deleted from function.opendir by cmb

From: Date: Tue, 11 Jun 2019 06:38:05 +0000
Subject: note 89091 deleted from function.opendir by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211218@lists.php.net to get a copy of this message
Note Submitter: matt ---- 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'); ....

« previous php.notes (#211218) next »