Php 将json发送到另一个域
我有一个php文件,如下所示: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
//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的发送(实际上是某种重新发送/重定向)。检索部分将由我自己处理。可能重复的