|
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.
|