philipjmic78
New Member
- Messages
- 3
- Reaction score
- 0
- Points
- 0
Is PHP configured to allow directory listing on X10's hosting servers? I have the following piece of code:
	
	
	
		
The directory is full of images however none are being added to the array and if I use error_get_last() with this I get the following message:
Array ( [type] => 2 [message] => opendir(http://thekidzattic.com/images/) [function.opendir]: failed to open dir: not implemented [file] => /home/thekidz1/public_html/admin/cms.php [line] => 7 )
I don't understand, this code was working fine on my local testing server now it is not working, any ideas?
Thanks.
			
			
		PHP:
	
	$dir = "http://thekidzattic.com/images/";
         $dh = opendir($dir));
         while ($f = readdir($dh)) {
           $images[] = $f;
         }The directory is full of images however none are being added to the array and if I use error_get_last() with this I get the following message:
Array ( [type] => 2 [message] => opendir(http://thekidzattic.com/images/) [function.opendir]: failed to open dir: not implemented [file] => /home/thekidz1/public_html/admin/cms.php [line] => 7 )
I don't understand, this code was working fine on my local testing server now it is not working, any ideas?
Thanks.
