Advanced Minds

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
move_uploaded_file not working File upload not working but no error... (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: move_uploaded_file not working File upload not working but no error...
#1735
Amy Kimber (Visitor)
Click here to see the profile of this user
Birthdate:
move_uploaded_file not working File upload not working but no error...  
Hello,     I have a file upload page, and I've had it working fine, it was beautiful Anyway, the powers that be moved hosts... and it doesn't work now.     The file name is correct, the directory where it's going on the server is correct (checked through prints etc.). I've changed the dir to 777 (is that right?) and this is what I get on the print_r($_FILES); line: Array (     [userfile] = Array         (             [name] = amy.txt             [type] = text/plain             [tmp_name] = /tmp/phpccPHUE             [error] = 0             [size] = 39         ) )     And the file is not uploading - I'm getting an error on the line: if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {     And yet, you'll notice the line above clearly states I get '0' error?!?!    I can't work it this one out... any helpful hints? Please?    Many many thanks,    Amy
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1736
Agelmar (Visitor)
Click here to see the profile of this user
Birthdate:
move_uploaded_file not working File upload not working but no error...  
Hello,     I have a file upload page, and I've had it working fine, it was beautiful Anyway, the powers that be moved hosts... and it doesn't work now.     The file name is correct, the directory where it's going on the server is correct (checked through prints etc.). I've changed the dir to 777 (is that right?) and this is what I get on the print_r($_FILES); line: Array (     [userfile] = Array         (             [name] = amy.txt             [type] = text/plain             [tmp_name] = /tmp/phpccPHUE             [error] = 0             [size] = 39         ) )     And the file is not uploading - I'm getting an error on the line: if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) <snip What is the value of $uploadfile?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1737
Chung Leong (Visitor)
Click here to see the profile of this user
Birthdate:
move_uploaded_file not working File upload not working but no error...  
Hello,     I have a file upload page, and I've had it working fine, it was beautiful Anyway, the powers that be moved hosts... and it doesn't work now.     The file name is correct, the directory where it's going on the server is correct (checked through prints etc.). I've changed the dir to 777 (is that right?) and this is what I get on the print_r($_FILES); line: Array (     [userfile] = Array         (             [name] = amy.txt             [type] = text/plain             [tmp_name] = /tmp/phpccPHUE             [error] = 0             [size] = 39         ) )     And the file is not uploading - I'm getting an error on the line: if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) <snip What is the value of $uploadfile? And what is the error?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1738
Amy Kimber (Visitor)
Click here to see the profile of this user
Birthdate:
move_uploaded_file not working File upload not working but no error...  
And what is the error? that's just hte point, [error] = 0 - but the line that's throwing the error is: if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { I have had this code working before on another server, so what am I doing wrong? Please! Any comments at all would be useful! Many thanks, Amy here's the whole code
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
905 sprawdz autoryzacje wymiana linkow brak autoryzacji sprawdz autoryzacje
dive in your life fried rice travel packages news and star todays news