0

I need to open a directory on my php application.

My machine has Windows XP, the unit i need to access is a shared folder that is of the server, and is mapped on my PC as the "G:" unit.

I have already entered the user name and password and saved them, so that when my PC boots I can enter the unit "G" without doing anything. The server has Windows Server 2008.

My code:

$path = 'G:\LABORATORIO2\Repositorio';

$dir = opendir($path);

I get the next error :

Warning: opendir(G:\LABORATORIO2\Repositorio) [function.opendir]: 
failed to open dir: No such file or directory in 
C:\xampp\htdocs\REPOHCL\laboratProtocolos.php on line 160

If i paste the address G:\LABORATORIO2\Repositorio on my file explorer, it opens perfectly.

If I change the address for an address that points to my local drive, go perfectly.

4

0 回答 0