Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default hmm upload stuff

    PHP Code:
            // Define the upload location
            
    $target_path "photos";

            
    // Create the file name with path
            
    $target_path $target_path basename$_FILES['upfile']['name']); 

            
    // Try to move the file from the temporay directory to the defined.
            
    if(move_uploaded_file($_FILES['upfile']['tmp_name'], $target_path)) {
                echo 
    "The file ".  basename$_FILES['upfile']['name']). 
                     
    " has been uploaded";
            } else{
                echo 
    "There was an error uploading the file, please try again!";
            } 
    whats wrong with this :s it keeps saying there was an error uploading the file please try again im not too sure if ive done it right :S

  2. #2
    Join Date
    Dec 2006
    Posts
    3,369
    Tokens
    0

    Latest Awards:

    Default

    Your server may be experiencing difficulties. Try and check.
    PM me for help.



  3. #3
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    true didnt think about that, i see u everywhere your haunting me!!!!

  4. #4
    Join Date
    Jul 2005
    Location
    -
    Posts
    2,995
    Tokens
    0

    Latest Awards:

    Default

    FIXED. close pls.

  5. #5
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Wait, so you're making a usersystem, and you have to follow a tutorial to make an upload script?

Posting Permissions

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