This is a very simple problem which is really bugging me.
I have written a script to upload an image file ($final_filename) from my
hard disc to the server .
If I upload it to my root directory then I can display the image using :
print("<img src=\"$final_filename\">");
but if I specify the upload path to be in another directory I cannot display
the image, the new path being :
print("<img
src=[url]http://www.mydomain.com/public_html/photo_uploads/[/url]$final_filename>");
or
print("<img
src=\"/home/mydomain/public_html/photo_uploads/$final_filename\">");
I know the image file ($final_filename) is in the photo_uploads directory
coz I can see it and it isn't corrupt.
Please can somebody give me some valuable path advice here, as I'm sure it's
something very easy to fix. Thank you.