April 10th, 2000, 12:40 PM
im working on a file-listing PHP script and i have run into a bit of a snag....
i'm trying to identify the directories from the regular files so i can do something special with them, but all of the functions that i have tried arent working because the "nobody" user that PHP scripts run as doesnt have the permissions to view the attributes for each thing in the list (obviously). I know that i could just set them all to read access for everyone, but it would be easier if i could just find a PHP solution. I've tried filetype(), stat(), and even is_dir(). Any other ideas?