Reply to Re: [PHP] STDERR not opened with php 5.0.5

Your name:

Reply:


Posted by Edin Kadribasic on 09/13/05 12:13

Hi,

Perhaps your /usr/local/bin/php505 is a cgi instead of cli?

Edin


Florent Monnier wrote:
> Hi,
>
> on http://www.php.net/manual/en/features.commandline.php is writen:
> STDERR - An already opened stream to stderr. This saves opening it with:
> <?php
> $stderr = fopen('php://stderr', 'w');
> ?>
>
>
> But this does not work:
> #! /usr/local/bin/php505 -q
> <?php
> fwrite(STDERR, "error!\n");
> ?>
>
>
> This does work:
> #! /usr/local/bin/php505 -q
> <?php
> define('STDERR', fopen('php://stderr', 'w'));
> fwrite(STDERR, "error!\n");
> ?>
>
>
> Is the manual wrong or does php 5.0.5 have change this property ?
>
> Thanks
>

[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

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