View Full Version : upload images path
fabioliotta
03-15-2009, 06:48 AM
Hi All
Someone knows the right path to put on line trought form some images
i mean one path like this: /account/folder/home/public/
thanks
wysiwyg
03-15-2009, 07:42 AM
The file-system path consists of your home directory followed by public_html then whatever the path is to whatever you're after.
eg. /home[n]/bhuser/public_html/[etc..]/images/
Your home directory is listed under cpanel.
This path is almost never used, since you can use relative paths for better portability (like ./images/).
fabioliotta
03-15-2009, 08:19 AM
This path is almost never used, since you can use relative paths for better portability (like ./images/).
Thanks now i found it, but please try to explain better the second part, when you're talking about relative paths
thanks
php8ox
03-15-2009, 03:18 PM
if you don't specify, images are sometimes uploaded to /home/username/tmp/ or temp folder defined in php.ini.
This is safer, as users might not be able to upload runnable scripts to a web directory.
verifying that the image is in fact an image is a good idea as well?
http://www.webdeveloper.com/forum/showthread.php?t=101466
this one doesn't verify, but the code is more bite-size for quick reading:
http://www.reconn.us/content/view/30/51/
there is no discussion of chmod ? while some web applications use 777 chmod directories for uploaded images, you might find 755 works. or even more, read the comment below this forum post:
http://www.htmlgoodies.com/beyond/webmaster/article.php/3548746
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.