I've a windows machine where Apache [url removed, login to view] is running and configured with php 5.3.
I've a network drive/ other machine hard disk, whose contents I'd like to access from this local machine.
You have to just show me the code snippet which I've to write on "[url removed, login to view]" to access the network drive. And then show me the contents of any folder of that network drive.
//Open images directory
system('net use Z: "\\[url removed, login to view]\Software" /persistent:no');
$dir = dir("Z:");
//List files in images directory
while (($file = $dir->read()) !== false)
echo "filename: " . $file . "<br />";
Happy Bidding !!