Hello,
I am unable to use any directory functions (dir, opendir) when trying to access a mapped network drive. I am running XP SP2/Apache 2.2.9/PHP5.2.6. The same scripts work on my other installation on Win2K/Apache 2.2.8/PHP 5.2.3. I believe the problem is due to security changes, although I'm not sure which security settings need to be changed.
I thought the problem may be that Null Sessions are not allowed across the network. To solve this on my Win2K install, I logged the Apache service on under my network account rather than the local system account, which did not have network access. This did not work on my XP install.
When I pass the following code:
$d = dir($input_dir) or die($php_errormsg);
I get the following error message:
Error: E_WARNING
dir(X:\Tools\MyTool\MyDir) [<a href='function.dir'>function.dir</a>] failed to open dir: No error at cgs_text.php line 7
Any help would be greatly appreciated.
Stringman