<?php
$files = array(
"yuanyangloujixia_wangluo_x264_20110720.mp4",
);
$startnum = 20110720003;
$client = new SoapClient("http://114.80.151.17:9000/Trans.asmx?WSDL",
array("uri" => "http://www.sobey.com/transferstation",
"soapaction" => "http://www.sobey.com/transferstation/Transfer"));foreach ($files as $file) {
$name = substr($file, 0, strlen($file) - 4);
$desc = $name;
$xml = '<?xml version="1.0" encoding="gb2312"?><video><id>' . $startnum++ . '</id><name>' . $name . '</name>
<path>video/jishi/2011/07/20/' . $file . '</path><cid>36926efff39a47ec93f86884968b0635</cid>
<description>' . $desc . '</description></video>';
$param["inputXMl"] = $xml;
$param["template"] = "XMLTemplate/DocumentaryTemplate.xml";
$res = $client->__call('Transfer', array("paramters" => $param));
print_r($res);
}
?>
这是本地的php程序,用来post一些数据。然后会在http://114.80.151.30/smgcn/story.php这里返回我要的数据,但是现在只能post成功,但是返回不了数据,请问这是为什么? 问题在哪? 谢谢。
顺便问下 6,7,8行在正常情况下是不是能单独访问?
$files = array(
"yuanyangloujixia_wangluo_x264_20110720.mp4",
);
$startnum = 20110720003;
$client = new SoapClient("http://114.80.151.17:9000/Trans.asmx?WSDL",
array("uri" => "http://www.sobey.com/transferstation",
"soapaction" => "http://www.sobey.com/transferstation/Transfer"));foreach ($files as $file) {
$name = substr($file, 0, strlen($file) - 4);
$desc = $name;
$xml = '<?xml version="1.0" encoding="gb2312"?><video><id>' . $startnum++ . '</id><name>' . $name . '</name>
<path>video/jishi/2011/07/20/' . $file . '</path><cid>36926efff39a47ec93f86884968b0635</cid>
<description>' . $desc . '</description></video>';
$param["inputXMl"] = $xml;
$param["template"] = "XMLTemplate/DocumentaryTemplate.xml";
$res = $client->__call('Transfer', array("paramters" => $param));
print_r($res);
}
?>
这是本地的php程序,用来post一些数据。然后会在http://114.80.151.30/smgcn/story.php这里返回我要的数据,但是现在只能post成功,但是返回不了数据,请问这是为什么? 问题在哪? 谢谢。
顺便问下 6,7,8行在正常情况下是不是能单独访问?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货