|
Posted by Janwillem Borleffs on 12/02/06 21:34
comp.lang.php wrote:
> No errors, no warnings, no notices
>
I have tried your code and it works just fine; I have tested it with the
long XML message in both one line and seperated with new lines.
What you should do besides removing the @ signes, is increasing the error
reporting level to E_ALL only:
error_reporting(E_ALL);
This will at least throw a notice about an undefined variable (not critical
but sloppy).
You can also remove file_get_contents with the following to test if there's
a problem with this function:
$xml = '';
$fp = fopen('php://stdin', 'r');
while (!feof($fp)) $xml .= fgets($fp, 1024);
fclose($fp);
Most importantly, however, is that you start with a small file which
basically only reads the input and prints it. If this works, you can start
rebuilding the script again in small chunks.
JW
Navigation:
[Reply to this message]
|