我将如何发送原始发布数据并在接收 .php 中使用 file_get_contents('php://input')... 我将如何设置表单来执行此操作?
所以基本上 file_get_contents 从 php 输入中将文件作为字符串读入?
最佳答案
在表单的 Action 中将页面设置为wibble.php
然后在wibble.php
中写入
<?PHP
file_get_contents('php://input');
?>
关于php - 发送原始发布数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7880113/