我正在调用一个php文件android应用程序上传两个图像到服务器。现在我已经将服务器更改为amazon服务器。所以我创建了一个新的php文件上传到亚马逊服务器的图像。问题是我需要重定向调用php文件到新的亚马逊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与传递这些参数。提前谢谢你。
你可以使用include从新的php文件中调用旧文件
include 'old.php';