【发布时间】:2018-02-22 10:44:43
【问题描述】:
我有以下方法从我的后台 php 脚本发送一个 post 请求到另一个 php 脚本:
$url = "ajax.php";
$res = @file_get_contents($url, false, stream_context_create([
"http" => [
"method" => "POST",
"content" => http_build_query($params, $_REQUEST['action'] = 'save_attach_command'),
],
]));
'ajax.php'是一个长脚本,在switch case中分割,我想输入'save_attach_command' case,我做错了什么?
任何帮助将不胜感激!
谢谢
【问题讨论】:
标签: php post switch-statement