Results 1 to 5 of 5

Thread: php file upload

  1. #1
    Join Date
    Dec 2004
    Posts
    40

    Default php file upload

    for some need,I want to upload files using php,
    but I don't know how to do,
    could somebady teach me?
    (pragram code)

    could this freeweb service run this function?

  2. #2
    Join Date
    Feb 2005
    Posts
    9

    Default How to upload using PHP

    Hi there!
    If you want to upload a file using PHP, its very simple. Firstly, you use a form and add a file upload control to it and make the action to a PHP file. Now you use the following function:

    move_uploaded_file ( $_FILES['userfile']['tmp_name'], string destination )

    Here, userfile is the name of the file control in the form and destination is the place where you want to upload the file. It is relative to the curent PHP file on the server.

    If you need any other help, feel free to ask me.

    Navraj
    [email protected]

  3. #3
    Join Date
    Feb 2005
    Posts
    9

    Default How to upload using PHP

    Hi there!
    If you want to upload a file using PHP, its very simple. Firstly, you use a form and add a file upload control to it and make the action to a PHP file. Now you use the following function:
    Code:
    move_uploaded_file ( $_FILES['userfile']['tmp_name'], string destination )
    Here, userfile is the name of the file control in the form and destination is the place where you want to upload the file. It is relative to the curent PHP file on the server.

    If you need any other help, feel free to ask me.

    Navraj
    [email protected]

  4. #4
    Join Date
    Feb 2005
    Posts
    21

    Default

    Thanks, really interesting !
    :shock:

  5. #5
    Join Date
    Feb 2005
    Posts
    14

    Default

    very very good !!! Thanks!.

Bookmarks

Posting Permissions

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