ID: 39436 User updated by: gianfranco dot pavesi at ergoitalia dot it Reported By: gianfranco dot pavesi at ergoitalia dot it Status: Bogus Bug Type: IIS related Operating System: Windows Server 2003 std sp1 PHP Version: 5.2.0 New Comment:
Ok, sorry, I've miss some info Anonymous User (IUSR_machinename) is disabled on the ISS and I'm using the Integrated Windows authentication. The error ((errno 22): Invalid argument) does not seams to be a permission error ... I'm confused. Previous Comments: ------------------------------------------------------------------------ [2006-11-08 17:46:28] [EMAIL PROTECTED] Running the code under IIS you're restricted to IIS default user privileges, while running in console you use your own user. Not PHP problem. ------------------------------------------------------------------------ [2006-11-08 17:36:55] gianfranco dot pavesi at ergoitalia dot it Description: ------------ I've tried to read the content of a shared remo directory from a web application running under IIS 6.0 It doesn't work ! If I run the same PHP code from a command line on the same server where the IIS is running, using the command "c:\php\php.exe my_php_code.php" ... it works !!! Reproduce code: --------------- <?php ... $mypath = "\\\\ergmilftp01\Sinistri_Scanner\Prod" ; $mylist = scandir("\\\\ergmilftp01\Sinistri_Scanner\Prod") ; foreach ($mylist as $myfile) { echo $myfile."<br />" ; } ... ?> Expected result: ---------------- pippo.txt pluto.txt paperino.txt Actual result: -------------- Warning: scandir(\\ergmilftp01\Sinistri_Scanner\Prod) [function.scandir]: failed to open dir: Invalid argument in D:\TechPortalTest\gsc_prova.php on line 8 Warning: scandir() [function.scandir]: (errno 22): Invalid argument in D:\TechPortalTest\gsc_prova.php on line 8 Warning: Invalid argument supplied for foreach() in D:\TechPortalTest\gsc_prova.php on line 10 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39436&edit=1