Results 1 to 4 of 4

Thread: upload images path

  1. #1
    Join Date
    Mar 2009
    Posts
    2

    Default upload images path

    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

  2. #2
    Join Date
    Jan 2008
    Location
    cardboard box
    Posts
    388

    Default

    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/).
    Have you tried turning it off and on again?

  3. #3
    Join Date
    Mar 2009
    Posts
    2

    Default

    Quote Originally Posted by wysiwyg View Post
    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

  4. #4
    Join Date
    Sep 2007
    Posts
    9

    Default re: php upload script

    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/sh...d.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/we...le.php/3548746

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •