|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-08 17:46 UTC] tony2001@php.net
[2006-11-08 17:56 UTC] gianfranco dot pavesi at ergoitalia dot it
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 09:00:01 2025 UTC |
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