Re: Re: move_uploaded_file() problem
| From: | Carlos Medina | Date: | Sat, 07 Feb 2009 13:03:50 +0000 |
| Subject: | Re: Re: move_uploaded_file() problem | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287896@lists.php.net to get a copy of this message | ||
Chris schrieb:
please show in the php.net site the Method is bool move_uploaded_file ( string $filename , string $destination ) String filename and destination are not right... Carlos Medinaif($_FILES['file']['name'] && $_FILES['file']['size']<550000){error_reporting(E_ALL); ini_set('display_errors', true); what does it show? does it get this far in the code? Add an error_log or echo "line is " . __LINE__ or something so you know for certain this is the problem. Hallo,$file_name = "news_".$_FILES['file']['name']; $image="../_img/news/".$file_name; //Upload file move_uploaded_file($_FILES['file']['tmp_name'], $image);