Save locally, working locally!

Discussion in 'PHP' started by eLuu, Jul 29, 2009.

  1. #1
    Hey there,

    I'm working locally, and the program doesn't need to run online. It's a paint application where I can save the output, and save it to a folder.

    I'm currently wanting to save an image to a specified folder, other than the one that contains the .php file.

    Currently it saves to my computer fine, without prompt. However I want to be able to save to a folder such as "Desktop\Image". I can post the code if necessary but I feel that it's more of a general question.

    IF anyone has any ideas then let me know :)

    Thanks,
    L
     
    eLuu, Jul 29, 2009 IP
  2. tguillea

    tguillea Active Member

    Messages:
    229
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    90
    #2
    In general, you can use "../" (without the quotes) to move up one directory, and if you want to go deeper in the directory you are already in simply start from there.

    For example, assuming a windows system if your website is based in C:\innetpub\wwwroot\ and you want to save to your desktop, you would have to save to the relative directory of ../../documents and settings/user/desktop. This would pop you up two directories to C:\, and then down to C:\documents and settings\user\desktop\.

    If you wanted to save deeper within the directory you are already in (say an Images folder), simply use the relative directory "images/" so it will be saved in C:\innetpub\wwwroot\Images.

    Let me know if I misread the question
     
    tguillea, Jul 29, 2009 IP