PDA

View Full Version : directory list/file upload with PHP help!!


herc
09-25-2000, 12:33 PM
Hi,

I am trying[nbsp][nbsp]to run a file management script in PHP but I[nbsp][nbsp]can't get a directory listing of the files in the folder. I have got the PHP script working on another of my hosting companies perfectly, and a friend of mine tried it on his server and it works. Basically could you give me the smallest script that would work on FQ to list a directory and upload a HTML file onto the - As I said it works on other hosts so this has to be an FQ problem (it's never my problem ;-) ).

Thanks

Justin
09-25-2000, 02:20 PM
PHP runs as user 'apache' and it runs in SAFE_MODE operation. Thus any files you need to access have to be accessible by apache. PHP will not be able to list your home directory or any other files that are private to you...

PHP uploads will work however - see this tutorial (http://www.aota.net/PHP_and_MySQL/phpupload.php3) for instructions on uploading.

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support