Help Please! :(

Discussion in 'Gaming' started by MythicX, Feb 16, 2006.

  1. MythicX

    MythicX Senior Member

    Posts:
    1,682
    Likes Received:
    0
    Joined:
    Aug 15, 2005
    Location:
    London, UK
    didnt seem to get any help in the other subforum but i posted in the wrong place lol sorry...

    Hey, could anyone help me create one single page with an upload script pleaseeeee?

    basically needs to have a browser where they click it and it brings up a window where they choose the file they want to upload.


    doesnt have to be detailed, just the site header as Tha Myth

    then subheader UPLOAD, then the box and the upload button to start the transfer


    like this for example...

    [​IMG]

    PM me plz!


    thanks people.


    Update: this is what i have so far...

    http://www.tayfon.clashx.com/myth/upload.html

    i cant get it to work, it doesnt work.. :(

    can anyone give me the proper php script please ??
     
  2. MythicX

    MythicX Senior Member

    Posts:
    1,682
    Likes Received:
    0
    Joined:
    Aug 15, 2005
    Location:
    London, UK
    Bumpbump
     
  3. MythicX

    MythicX Senior Member

    Posts:
    1,682
    Likes Received:
    0
    Joined:
    Aug 15, 2005
    Location:
    London, UK
    Bump!!!!!!!!1!1!1111oneonewon
     
  4. Blooper008

    Blooper008 Well-Known Member

    Posts:
    1,535
    Likes Received:
    0
    Joined:
    Mar 17, 2005
    Haven't takem a look at the script, but make sure your upload permissions are right.

    Edit2: It's linking to uploader.php can you host that script somewhere in a zip/rar so we can take a look at it?
     
  5. MythicX

    MythicX Senior Member

    Posts:
    1,682
    Likes Received:
    0
    Joined:
    Aug 15, 2005
    Location:
    London, UK

    lol,, that file is basically this

    Code:
    <? 
    if (is_uploaded_file($userfile)) { 
      move_uploaded_file($userfile, "/useruploads"); 
    } 
    ?> 
    my friend said just using that would work but i know nothing about php :(:S
     
  6. Racerman

    Racerman Well-Known Member

    Age:
    35
    Posts:
    670
    Likes Received:
    0
    Joined:
    Dec 15, 2005
    Location:
    Manchester, UK
  7. MythicX

    MythicX Senior Member

    Posts:
    1,682
    Likes Received:
    0
    Joined:
    Aug 15, 2005
    Location:
    London, UK

    kk i used that but it still doesnt work :( :eek:

    Code:
    <?php
    
    if($_POST['uploadedfile'] != NULL)
    { 
    $targetPath = "useruploads/";
    
    $targetPath = $targetPath . basename($_FILES['uploadedfile']['name']);
    
    if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],$targetPath))
    echo("The file " .basename($_FILES['uploadedfile']['name']. " has been uploaded"));
    else
    echo("There was an error uploading the file, please try again");
    }
    ?>

    tahts what i used, can you see anything wrong in that?
     
  8. MythicX

    MythicX Senior Member

    Posts:
    1,682
    Likes Received:
    0
    Joined:
    Aug 15, 2005
    Location:
    London, UK
  9. Equivalent Exchange

    Equivalent Exchange Well-Known Member

    Posts:
    1,466
    Likes Received:
    0
    Joined:
    Nov 9, 2005
    chmod the folder your trying to write to to 777
     
  10. MythicX

    MythicX Senior Member

    Posts:
    1,682
    Likes Received:
    0
    Joined:
    Aug 15, 2005
    Location:
    London, UK
    how do i do that, sorry i dont know much about php


    EDIT: i changed it to 777 but now it just doesnt save in the folder its set to and doesnt give an error?

    can anyone help?
     
  11. MythicX

    MythicX Senior Member

    Posts:
    1,682
    Likes Received:
    0
    Joined:
    Aug 15, 2005
    Location:
    London, UK
    bump. plzzzzzz i need this
     
  12. MythicX

    MythicX Senior Member

    Posts:
    1,682
    Likes Received:
    0
    Joined:
    Aug 15, 2005
    Location:
    London, UK
    bump for this
     

Share This Page