You are here: Re: errors to stderr « PHP Programming Language « IT news, forums, messages
Re: errors to stderr

Posted by on 09/17/05 01:42

> <- Chameleon ->,
>
>> The whole thing is this.
>>
>> I have a java app which creates rtf files via php scripting calling
>> php.exe -n script.php
>> the STDIN is the serialized data from java app to php script.
>> the STDOUT is the exported rtf file.
>> I want the STDERR be all produced script errors/warnings which java
>> app shows in a dialog.
>
>
> If this is the case you could still use a user defined error handler.
> Otherwise you may have to change it in the php source and recompile it
> yourself. I have really never looked into it that deep but my
> assumption would be it is hard coded somewhere in the source code.

you are right
I must run the php script with this:

php -n -d log_errors=On -d display_errors=Off script.php

log_errors=On : Write errors in STDERR
display_errors=Off : Don't write errors in STDOUT

thanx

 

Navigation:

[Reply to this 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

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