Blitz Posted September 21, 2005 Report Share Posted September 21, 2005 (edited) $handle = opendir("X:/"); if ($handle) { while (false !== ($file = readdir($handle))) { print "$file<BR />\n"; } closedir($handle); } Warning: opendir(X:) [function.opendir]: failed to open dir: Invalid argument in c:\Inetpub\wwwroot\Foto\bildes.php on line 2 Kapec met araa sadu pazinojumu. Uz debugeru iet viss normali, bet tikko gribu laist caur IE, tad izmet sitadu erroru. Kur varetu but problema? X:/- map drive network... Edited September 21, 2005 by Blitz Link to comment Share on other sites More sharing options...
Kavacky Posted September 21, 2005 Report Share Posted September 21, 2005 Tāpēc, ka argumentā ir kāda vaina. Tā tak tur rakstīts. "If path is not a valid directory or the directory can not be opened due to permission restrictions or filesystem errors, opendir() returns FALSE and generates a PHP error of level E_WARNING." Nav kāds no šiem? Link to comment Share on other sites More sharing options...
Blitz Posted September 21, 2005 Author Report Share Posted September 21, 2005 Nee, ar argumentiem man viss kartibaa. Tiesibas lietot to mapi ari ir. Vienigais tas ir mapots disks no tikla (map network drive) ja nomaina uz kaut vai uz C: tad viss iet normali. Kaa lai tieku ar sitadu problemu galaa, ja disks ir tiklaa.... Link to comment Share on other sites More sharing options...
Kaklz Posted September 21, 2005 Report Share Posted September 21, 2005 Atceros, ka es arī ar šo mēģināju cīnīties, taču tā arī galā netiku. Cik toreiz sapratu, tad manam sistēmas lietotājam (tam, zem kura bija palaists apache ar PHP, nevis tam, ar kuru uz attiecīgā datora strādāju) nebija tiesību darboties ar attiecīgo tīkla disku. Attiecīgi arī tev varētu būt kaut kas līdzīgs. Link to comment Share on other sites More sharing options...
Blitz Posted September 21, 2005 Author Report Share Posted September 21, 2005 (edited) ammm... php un webservers stav uz manu kompi... tatad ja varu tai mapee rakstiit, dzeest un visadi citadi kjeezities tad uzskatu ka man ir tadas tiesibas... PS noradu kaut vai precizu tikla adresi taa pat neiet! Edited September 21, 2005 by Blitz Link to comment Share on other sites More sharing options...
blackhalt Posted September 21, 2005 Report Share Posted September 21, 2005 palasi komentāros: http://lv.php.net/manual/en/function.opendir.php Link to comment Share on other sites More sharing options...
Paulinjsh Posted September 21, 2005 Report Share Posted September 21, 2005 A permisijās ir uzlikts system full control? Mok līdz? Link to comment Share on other sites More sharing options...
ivars Posted September 21, 2005 Report Share Posted September 21, 2005 Vo vo - pac saki, ka uz C iet, tātad paskaties procesos kurš jūzeris ir palaidis webserveri un vai tam ir pietiekamas tiesības uz tavu tīkla disku (vari salīdzināt ar viņa tiesībām uz C diska). tas, ka tev pašam tur ir tiesības rakstīt un lasīt, vēl neko nenozīmē... Link to comment Share on other sites More sharing options...
Blitz Posted September 22, 2005 Author Report Share Posted September 22, 2005 Kaa jau iepreiks mineeju, ka webservers un php ir uz man PC, no kura arii opereeju... Link to comment Share on other sites More sharing options...
Gacha Posted September 22, 2005 Report Share Posted September 22, 2005 No php: opendir() The easiest (and probably least safe) way for me was to change the user for the Apache service to the computer administrator (do this in the service properties, under the "Log On" tab). After restarting Apache, I could access mapped drives by their assigned drive letter ("z:\\") or regular shares by their UNC path ("\\\\shareDrive\\shareDir"). Link to comment Share on other sites More sharing options...
bubu Posted September 22, 2005 Report Share Posted September 22, 2005 Nu tak paskaties vai webserverim ir tiesības tikt klāt tam mapotajam diskam, tev visu laiku saka! Link to comment Share on other sites More sharing options...
Blitz Posted September 23, 2005 Author Report Share Posted September 23, 2005 Es lietoju IIS, vinam varetu but tada pati problema? Kur to var izlabot, nekur neko tamlidzigu atrast nevaru... Link to comment Share on other sites More sharing options...
v3rb0 Posted September 23, 2005 Report Share Posted September 23, 2005 iis peec nokluseejuma bija veseli divi(vai pat 3) sistemas useri ar kuriem vinsh straadaaja. Tiesham ir uzliktas tiesibas iis userim tikt pie taas mapes? Link to comment Share on other sites More sharing options...
Blitz Posted September 23, 2005 Author Report Share Posted September 23, 2005 Mapei ir var tikt ikviens klaat... "everyone"! Atradu IIS users IUSR.., IWAM... un ASPNET, kam varetu but saistiba ar IIS. nu bet ja mapei uzlikts everyone, vai tad janorada sitiem atseviski? Link to comment Share on other sites More sharing options...
Venom Posted September 23, 2005 Report Share Posted September 23, 2005 NB: a ja pa tiešo jūgties klāt \\share\folder nevis Z:? Link to comment Share on other sites More sharing options...
Recommended Posts