Jump to content

scandir clients directory


homer.favenir

Recommended Posts

hi,

how can i scandir the clients directory? i need a script that when i click a button it will upload all the files in the directory

$dir = "\\\\".$_SERVER["REMOTE_ADDR"]."\\NewFolder";
$dir = scandir($dir);
foreach($dir as $item){
echo $item;
}

 

its not working

 

error:

Warning: scandir(\\192.168.200.108\NewFolder) [function.scandir]: failed to open dir: No such file or directory in C:\xampp\htdocs\VYPAdtraq\test\save_success.php on line 43

 

its in intranet and the folder is already fully shared

 

TIA

Link to comment
https://forums.phpfreaks.com/topic/179574-scandir-clients-directory/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.