Problem: opendir

    Date: 05/12/07 (PHP Community)    Keywords: php

    Using a simple script that list the files in a folder
    (found here:  http://us2.php.net/manual/en/function.readdir.php)

    It works great, except for opendir

    The php file (script.php) exists in:  /my/site/folder

    The files I want to list exists here: /my/site/folder/files

     
    I can’t get opendir to read anything outside of /my/site/folder

    I’ve done this kind of pathing before with other functions, but I can’t figure it out.

    The error ALWAYS indicates there is no such file or directory in: /my/site/folder/script.php

    The fact that the error shows the script file has got to be a clue--but not one I'm tapped into.

    Any Ideas?

    Source: http://community.livejournal.com/php/565645.html

« Function problems || Komodo Edit »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home