We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[2892] Uploading files in PHP

Last post 09-28-2006 11:08 AM by CarlBe. 34 replies.
Page 3 of 3 (35 items) < Previous 1 2 3
Sort Posts: Previous Next
  • 01-28-2005 8:32 AM In reply to

    root address

    how can i get the exact address of the uploaded file i browsed.

    like when i browsed it from "C:/picture.bmp"

    how can i get this address? i mean how could i get these exact words?

    and when i upload this picture to the server, i declared the address of the server.
    but then it says, "permission denied"

    what does it mean?
    • Post Points: 0
  • 01-29-2005 9:16 PM In reply to

    • mike00
    • Not Ranked
    • Joined on 01-29-2005
    • New Member
    • Points 5

    change/set permissions on upload

    Hi,

    I'm relatively new to php. I'm using a code simliar to the one posted for file uploads. I was wondering if there was any way to set the permisson to "read only" upon upload. I've been having problems with uploading images that will only display if I manually set the permission in my site admin tool. Any help would be muck appreciated.
    Thank you,
    Mike
    • Post Points: 0
  • 02-04-2005 5:37 AM In reply to

    permission change of uploaded file

    gud day!
    i have problems regarding the file i uploaded on the server.

    the file is pic.bmp

    i uploaded it in "subs/images"
    then i am about to create an exec statement to convert this logo.

    its permission is "-rw-------" and i would like to change it.
    i typed "chmod 777 pic.bmp"

    it says "operation not permitted"
    what can i do?
    • Post Points: 0
  • 06-12-2005 3:58 PM In reply to

    can the form change the filename as it is uploaded

    Is there anyway to change the filename as it is uploaded?   So  myhouse.jpg   is auto changed to file1.jpg

    For instance, anytime a file is uploaded via the form... Have it name the file   MYFILE.jpg

    so that when a new file is uploaded it overwrites the old file without having to have the user specify the correct filename before uploading it.
    • Post Points: 0
  • 09-28-2006 11:08 AM In reply to

    • CarlBe
    • Not Ranked
    • Joined on 09-28-2006
    • New Member
    • Points 5

    Re: [2892] Uploading files in PHP

    I am trying to allow people to upload image files and post them to me.

     

    I have copied your code exactly but get the following;

    Parse error: parse error, unexpected T_IF in /nfs1/expatriatespain.com/www/test site/myupload.php on line 16

    Any ideas?

     

    • Post Points: 5
Page 3 of 3 (35 items) < Previous 1 2 3