I had used this function-----> import_request_variables('p') in more than 50 php files with this function --> extract($_GET, EXTR_PREFIX_ALL, 'p'); is there and php script can do this job without opening each file
I want something like this :
//read the entire string
$str=implode("",file('../*.php'));
$fp=fopen('../*.php','w');
//replace something in the file string, here i am replacing import_request_variables('p') to extract($_GET, EXTR_PREFIX_ALL, 'p')
$str=str_replace('import_request_variables('p')','extract($_GET, EXTR_PREFIX_ALL, 'p')',$str);
//now, save the file
fwrite($fp,$str,strlen($str));