nosmasu Posted June 25, 2008 Share Posted June 25, 2008 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 More sharing options...
vbnullchar Posted June 25, 2008 Share Posted June 25, 2008 can show more of your code.. what was the error? Link to comment https://forums.phpfreaks.com/topic/111809-picture-upploding-error/#findComment-573991 Share on other sites More sharing options...
PFMaBiSmAd Posted June 25, 2008 Share Posted June 25, 2008 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. Link to comment https://forums.phpfreaks.com/topic/111809-picture-upploding-error/#findComment-574112 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.