Forum Moderators: coopster

Message Too Old, No Replies

PHP not bringing up my files in my root dir, on sever

root dir problem

         

cloudster

12:50 am on Jul 9, 2004 (gmt 0)



I'm learing PHP, and I did PHP script, so that when I type in the url to go to .php file it is supposed to show all of the files that I have in root folder, but it does not show any of the files, the hosting support said that there is nothin wrong at there end, and the script that I wrote does not have errors in it, but for some reason it does not want to show the file. this problem is really driving me nuts.

rlkanter

6:13 am on Jul 9, 2004 (gmt 0)

10+ Year Member



So your script is supposed to display all the files in the root directory and it is not? Not sure how to help without seeing your code.

[us2.php.net...]

Has two examples of how to use the readdir function, this might help.

jatar_k

5:30 pm on Jul 9, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld cloudster,

do you have an example?

you could also look at this
displaying certain file types when displaying contents of dir? [webmasterworld.com]
it does specific file types but it just reads through the dir and shows files

bunltd

5:41 pm on Jul 9, 2004 (gmt 0)

10+ Year Member



What about the file permissions and ownership... that could keep you from seeing them...

Welcome to WW, cloudster!

LisaB