note 58052 deleted from function.move-uploaded-file by jome

From: Date: Sun, 23 Oct 2005 09:00:07 +0000
Subject: note 58052 deleted from function.move-uploaded-file by jome
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97435@lists.php.net to get a copy of this message
Note Submitter: shakrath at myshakrath dot de Reason: non-english ---- hi hab das problem so Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 10735 is not allowed to access /usr owned by uid 0 in /home/www/htdocs/suicidal-warriors.de/wowp/update.php on line 11 possible file attack! wenn ich es änder wie oben im beitrag ORIGINAL if( ! move_uploaded_file( $_FILES[$filefield]['tmp_name'], $filename ) ) { die( "possible file attack!" ); } ------------- ------------- NEW if(!move_uploaded_file($_FILES["myfile"]["tmp_name"], rawurlencode($mydir.$_FILES["myfile"]["name"])) { echo "Something is wrong with the file"; exit; } ------------- ------------- wenn ich es geändert habe bekomme ich den fehler Parse error: parse error, unexpected '{' in /home/www/htdocs/suicidal-warriors.de/wowp/update.php on line 13 doch in line 13 mus (}) rein denn ohne kommt Parse error: parse error, unexpected T_ECHO in /home/www/htdocs/suicidal-warriors.de/wowp/update.php on line 13 irgendwie binisch überfragt :(

« previous php.notes (#97435) next »