I have possibly a dumb question (or at least an easy one) for someone.
I have been teaching myself PHP and working on building a CMS. I have switched to running php on Apache because I needed to work around the 7mb file upload limit with a .htaccess file. I ran into a problem with move_uploaded_file and discovered I needed to chmod the directory as 777 in order to write into it. I know that this is a security risk, and to minimize that risk I’d like to keep the upload directory at the user level, rather than at the domain level, as someone on the dreamhost forum suggested.
All this is working fine with no problems - BUT . . .
I’ve been bashing my head against the wall over the simple issue of calling that file once it is in the user level directory. Say I have a file here:
and my page that calls the image here:
If I wanted to call that image in a simple or tag, what do I need to do? Currently, if I try to call an image like so:
it comes out in the html as:
which is no good at all.
I do have an include directory listed in my .htaccess file for /home/user/files. I am sure I am missing some extremely simple bit of information about calling files from user level directories, but I have had no luck googling a solution.
Any help would be appreciated!