On Sat, 2009-02-07 at 14:03 +0100, Carlos Medina wrote: > Chris schrieb: > > > >> if($_FILES['file']['name'] && $_FILES['file']['size']<550000){ > >> > >> $file_name = "news_".$_FILES['file']['name']; > >> $image="../_img/news/".$file_name; > >> //Upload file > >> > >> move_uploaded_file($_FILES['file']['tmp_name'], $image); > > > > 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, > 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 Medina > I've been using this function for years, it's definitely right. Are you sure your strings are right? The should be absolute or relative paths to the file. Usually you'd do something like this Chris showed you. Also, as you're on a Linux system, make sure that the directory into which you are trying to put the file has got the right permissions to allow Apache to do this. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php