FAQ一覧へ戻る

updir.php?mode=startにアクセスすると以下のエラーがでる
Warning: extract() expects first argument to be an array in ・・

※2003年8月29日修正

updir.phpの9行目あたり、

extract($_POST);extract($_GET);extract($_SERVER);extract($_FILES);

の部分を以下と置き換えてください。

$mode = $HTTP_GET_VARS['mode'];
$num = $HTTP_GET_VARS['num'];
$file_name = $HTTP_GET_VARS['file_name'];
$delp = $HTTP_GET_VARS['delp'];
$vchg = $HTTP_POST_VARS['vchg'];
$ap = $HTTP_POST_VARS['ap'];
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
$name = $HTTP_POST_VARS['name'];
$com = $HTTP_POST_VARS['com'];
$delpass = $HTTP_POST_VARS['delpass'];
$cd = $HTTP_POST_VARS['cd'];
$word = $HTTP_POST_VARS['word'];
$upf = $HTTP_POST_VARS['upf'];
$upe = $HTTP_POST_VARS['upe'];
$dele = $HTTP_POST_VARS['dele'];
$delfname = $HTTP_POST_VARS['delfname'];
$afi = $HTTP_POST_VARS['afi'];
$_FILES['userfile']['name'][0] = $HTTP_POST_FILES['userfile']['name'][0];
$_FILES['userfile']['tmp_name'][0] = $HTTP_POST_FILES['userfile']['tmp_name'][0];
$_FILES['userfile']['type'][0] = $HTTP_POST_FILES['userfile']['type'][0];
$_FILES['userfile']['size'][0] = $HTTP_POST_FILES['userfile']['size'][0];
$_FILES['userfile']['name'][1] = $HTTP_POST_FILES['userfile']['name'][1];
$_FILES['userfile']['tmp_name'][1] = $HTTP_POST_FILES['userfile']['tmp_name'][1];
$_FILES['userfile']['type'][1] = $HTTP_POST_FILES['userfile']['type'][1];
$_FILES['userfile']['size'][1] = $HTTP_POST_FILES['userfile']['size'][1];
if(!($HTTP_GET_VARS['mode'])){$mode = $HTTP_POST_VARS['mode'];}
if(!($HTTP_GET_VARS['num'])){$num = $HTTP_POST_VARS['num'];}
if(!($HTTP_GET_VARS['file_name'])){$file_name = $HTTP_POST_VARS['file_name'];}
if(!($HTTP_GET_VARS['delp'])){$delp = $HTTP_POST_VARS['delp'];}