PHP Directory Listing?

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:
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.
 

steadyedd

New Member
Messages
3
Reaction score
0
Points
0
Just a guess off the top of my head but does x10 allow opening of urls? try using a path instead of an url in your $dir variable. ('../images/' instead of 'http://mysite.com/images/')
 
Top