Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 将json发送到另一个域_Php_Arrays - Fatal编程技术网

Php 将json发送到另一个域

Php 将json发送到另一个域,php,arrays,Php,Arrays,我有一个php文件,如下所示: <?php //recieving json $sJsonData = @file_get_contents('php://input'); $aPostData = json_decode($sJsonData, true); //here I need to post the data to another cross domain $url='http://www.website.org/recieveJson

我有一个php文件,如下所示:

<?php
    //recieving json
    $sJsonData = @file_get_contents('php://input');
    $aPostData = json_decode($sJsonData, true);

    //here I need to post the data to another cross domain
    $url='http://www.website.org/recieveJson.php'
    //
    ...
?>

这在纯php中可能吗

它只是关于json的发送(实际上是某种重新发送/重定向)。检索部分将由我自己处理。

可能重复的