Reply to Re: php://stdin too long?

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация