hi,
i migrating an old CMS and there is something am not understanding:
For some reason if magic_quotes_gpc is turned off, uploads dont work. Function below:
function myupload($dir, $filein, $exclude=array(), $include=array(), $specs=array(), $det=array())
{
if(is_array($filein))
{
THIS IF RETURNS FALSE. I.E IT DOES NOT GO THROUGH HERE... IT JUMPS TO ELSE..
It seems the the $filein supplied to this function has a problem, though print_r show the value 1.
$filein comes from the call below:
myupload('../UserSiteFiles/'.rawurldecode($_POST['currentdir']), $_FILES['uploads'])
WHAT happens to $_FILES and $_POST when magic_quotes_gpc=off ??
Thanks...