Browsing Mac With PHP

Alles, was PHP betrifft, kann hier besprochen werden.

Browsing Mac With PHP

Postby NinjaJoshy » 03. February 2010 02:50

So I recently installed xampp on my macbook in the hopes of managing some media with a gallery app I built using PHP and mySQL. Currently they script works by scanning a directory located in the /htdocs/ folder, no biggie. I was wondering if it was possible for a PHP script to access the rest of my HD? So say I was storing my media outside of my /applications/xampp/htdocs/ directory, can I access them using xampp and PHP?
NinjaJoshy
 
Posts: 1
Joined: 03. February 2010 02:30

Re: Browsing Mac With PHP

Postby Nobbie » 03. February 2010 13:16

Yes, PHP can access all folders (not only the foldery beyond DocumentRoot). But the folders must be readable for the User which executes Apache ("nobody" per Default, see httpd.conf).
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to PHP

Who is online

Users browsing this forum: No registered users and 13 guests