所以我有一个xml文件是作为curl_exec的返回值创建的。问题是,它只输出前2514个字符,然后继续...php var_dump没有完成XML
这是为什么?有什么办法让我告诉var_dump()给我所有东西?
这里是我的代码片段:
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml_data");
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
$file_contents = curl_exec($ch);
curl_close($ch);
var_dump($file_contents);
感谢所有
编辑:当我使用网络浏览器这甚至真的。
你试过echo吗? – SmokeyPHP 2012-08-15 15:44:46
使用'echo $ file_contents;'? – goat 2012-08-15 15:45:49