labaiss Posted July 6, 2010 Report Share Posted July 6, 2010 Kāpēc tā notiek? $path='bildes/'; $handle=opendir($path); while (($file = readdir($handle))!==false) { kad $path = 'bildes/' - viss ir ok un darbojas lieliski. bet man vajag piem. .../asd/cbm/bildes/ - tā tas nedarbojas! Jo PHP failils, kas to veic atrodas, .../asd/cbm/system/php_fails.php Kā jaraksta url, lai man viss darbotos? lūdzu ar piemēru. Paldies. Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted July 6, 2010 Report Share Posted July 6, 2010 ../bildes Quote Link to comment Share on other sites More sharing options...
labaiss Posted July 6, 2010 Author Report Share Posted July 6, 2010 ../bildes tā tas arī nedarbojas !!! Quote Link to comment Share on other sites More sharing options...
labaiss Posted July 6, 2010 Author Report Share Posted July 6, 2010 Bet tiko atradu risinājumu! Tas ir sekojoš: $path = $_SERVER['DOCUMENT_ROOT'].'/bildes/'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.