So I have an xml file that was created as the return value from curl_exec. The problem is that it only outputs the first 2514 characters and then continues with a …
Why is this? Is there any way for me to tell var_dump() to give me EVERYTHING?
Here is my code snippet:
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);
Thanks all
EDIT: This is even true when I use a web browser.
If you have xdebug installed it will truncate your var_dumps (in an effort to help prevent massive amounts of debug information from being printed to the screen.. possibly crashing your browser). Read http://xdebug.org/docs/display for the settings that will effect this.