PHP警告:缺少ajaxfunctions.PHP中所有函数的所有参数

PHP警告:缺少ajaxfunctions.PHP中所有函数的所有参数,php,arguments,Php,Arguments,我有一个名为ajaxfunctions.php的XAJAX文件,其中包含一些函数,如: function show_gallery($id){ $objResponse = new xajaxResponse(); if(!$_SESSION["g".removeScript($id)]){ $_SESSION["g".removeScript($id)]=1; updateCounterGallery($id); } $o

我有一个名为ajaxfunctions.php的XAJAX文件,其中包含一些函数,如:

function show_gallery($id){
    $objResponse = new xajaxResponse();
    if(!$_SESSION["g".removeScript($id)]){
        $_SESSION["g".removeScript($id)]=1;
        updateCounterGallery($id);
    }
        $objResponse->addScriptCall("popupImages", "./cportal /form/user_gallery_ajax.php?id=".$id."");
    return $objResponse;
    }

在原始函数中调用xajax_show_gallery(24)时,参数丢失了。此问题发生在该文件中的每个调用函数中string@Nouphal.M:请解释更多。在每个函数调用中,参数都会丢失函数体中的值
?id=“..id.”
在这里,您可以尝试使用此方法来代替
”/cportal/form/user_gallery_ajax.php?id=$id“
当我试图通过以下方式获取$id的值:
函数show_gallery($id){die($id);$objResponse=new xajaxResponse();if(!$u会话[“g.removeScript($id)]{$\u会话[“g.removeScript($id)]=1;updateCounterGallery($id);}$objResponse->addScriptCall(“popupImages”,”/cportal/form/user_gallery_ajax.php?id=“.id.”);返回$objResponse;}
die($id);
语句返回NULL