Jump to content

coreyrecon

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

coreyrecon's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So I just need to remove the single quotes? I need it to be able to upload based from the URL like this. http://www.server.com/upload.php?w=C:\Example.txt In other forms I've been told this is not possible.
  2. Hello, I'm using a basic PHP upload, Seen here. <?php $target_path = "uploads/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; } ?> I've tried editing it to base the file location of of GET <?php $target_path = "uploads/"; $file = $_GET['w'] $target_path = $target_path . basename( $_FILES['$file']['name']); if(move_uploaded_file($_FILES['$file']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['$file']['name']). " has been uploaded"; } else{ echo "There was an error uploading the file, please try again!"; } ?> But it just throws an error echo "There was an error uploading the file, please try again!"; Does anyone know or can suggest a solution? Thanks!
  3. coreyrecon

    Hey!

    Hi, I'm coreyrecon. I'm a novice at PHP. But hope to change that! Glad to be a member of the forums!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.