我正在调用一个php文件安卓应用程序将两个图像上传到服务器。现在我已将服务器更改为亚马逊服务器。所以我创建了一个新的php文件,将图像上传到亚马逊服务器。问题是我需要将调用的php文件重定向到新的amazon php。
我的旧php文件是
$namee=$_POST["name"];
$txnyear=$_POST["txn_year"];
$image=$_POST["image"];
$image2=$_POST["image2"];
$ID=$_POST["id"];
$decodedimage = base64_decode("$image");
$decodedimage2 = base64_decode("$image2");
$f = finfo_open();
$mime_type = finfo_buffer($f, $decodedimage, FILEINFO_MIME_TYPE);
$file_content=file_put_contents("/var/www/xxxx/CRM/CUST_IDS/".$namee.".png", $decodedimage);
$file_content2=file_put_contents("/var/www/xxxx/CRM/CUST_PHOTO/".$namee.".png", $decodedimage2);
if(!($decodedimage==null && $decodedimage2==null))
}
所以请帮我把这个旧的PHP重定向到新的php并传递这个参数..提前感谢。
答案 0 :(得分:0)
您可以使用include从新的php文件中调用旧文件
include 'old.php';