Jump to content

picture upploding error


nosmasu

Recommended Posts

hello fnds!

i was trying to uppload a picture to the  server using the following code, but it is showing me the die statment("error").

please show me if you got a solution!

 

$photograph="photo\".$HTTP_POST_FILES['photo']['name'];

        copy($HTTP_POST_FILES['photo']['tmp_name'],$photograph) or die("error");

       

        $photograph=addslashes($photograph);

Link to comment
https://forums.phpfreaks.com/topic/111809-picture-upploding-error/
Share on other sites

Add the following two lines after your first opening <?php tag to get any php errors to be displayed -

 

ini_set ("display_errors", "1");

error_reporting(E_ALL);

 

$HTTP_POST_FILES was depreciated long ago, are turned off in all current versions of php, and have been completely eliminated in upcoming php6. Use $_FILES instead.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.