View Single Post
Old 25-03-2009, 12:20   #2
TheDon
Inactive
 
Join Date: May 2007
Posts: 1,567
TheDon has reached the bronze age
TheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze ageTheDon has reached the bronze age
Re: need help with pointing to an ubuntu directory. Using LAMPP

You should just be able to use the absolute path, so setting $dir to /opt/lampp/web_site_copy/pictures should let php see them.

The real question is what you then want to then do with the paths?

If as I suspect you want to use them to create a page of links to them or some such so as you can serve the files from a webpage then yes, you'll need to alter your apache config so as your DocumentRoot is /opt/lampp/web_site_copy/ or store the pictures under /opt/lampp/htdocs/pictures which is the easier solution.
TheDon is offline   Reply With Quote