note 40306 added to features.file-upload.common-pitfalls

From: Date: Sat, 28 Feb 2004 06:19:36 +0000
Subject: note 40306 added to features.file-upload.common-pitfalls
Groups: php.notes 
Request: Send a blank email to php-notes+get-65917@lists.php.net to get a copy of this message
To hansm1 @ hotmail.com: Setting magic_quotes_gpc() off in your script.. Is useless. The data is sent BEFORE the script executes, so it's completely useless. THIS, is usefull: <?php if(ini_get('magic_quotes_gpc')) { if(!empty($_POST)) { foreach($_POST as $key => $val) { $_POST[$key] = stripslashes($val); } } if(!empty($_GET)) { foreach($_GET a $key $val) { $_GET[$key] = stripslashes($val); } } // and so on } ?> ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.common-pitfalls.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40306 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40306&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40306&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65917) next »