|Sep 21, 2013, 03:56 PM||#1|
Listing directory for php
Hi. I'm trying to make a simple photo listing app for my intranet using php. My photos are in an external HD mounted as a Volume, so no permission issues, I can even read those files using simple php file_get_contents function, however, can't obtain a file listing and subdirectories.
I'm using my own library to read directories basically using opendir and a pointer and it works fine INSIDE apache's root. Outside, it returns a big nothing, I mean, not even an error, just nothing!
|Sep 22, 2013, 04:21 PM||#2|
opendir outside server root?
it should be really simple. For instance make a symlink for your external dir in your server root directory or just use complete path eg. "/Volumes/Your Externall HDD/Your Folder/...". And be sure that the directory (and volume) can be read by _www (apache user). Or try to run your script from commandline as root (sudo php path_to_your_script.php).
hope this helps
|Sep 23, 2013, 02:31 PM||#3|
|directory utility, file manager, php|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|[php] - php problems os x mountain lion 10.8.2||cakas6933||OS X 10.8 Mountain Lion||4||Jun 10, 2014 08:08 AM|
|copy a directory using bash - how to do it? error: is a directory (not copied).||cupboy1||OS X 10.8 Mountain Lion||0||Mar 23, 2014 09:50 PM|
|Listing of movies -- help please||elgrecomac||iOS 7||3||Sep 21, 2013 08:31 PM|
|Migrating directory listing in Finder to Pages||orbdrums||Mac Basics and Help||3||Feb 13, 2013 11:36 PM|
All times are GMT -5. The time now is 04:18 PM.