You are here: Re: Which PHP am I running? « PHP Programming Language « IT news, forums, messages
Re: Which PHP am I running?

Posted by Chung Leong on 12/09/00 11:52

Richard Levasseur wrote:
> It would seem you're out of luck, then, at least for windows. In *nix
> you might be able to use the "_" env variable. You can always require
> a command line switch to be set to specify the mode. The only other
> idea i have is to figure out where stdout is going.

Hmmm, that should work. GUI apps on Windows have null stdout. An
attempt to write to it would fail:

$stdout = fopen("php://stdout", "wb");

if(@fwrite($stdout, "Error: the dingo ate my baby\n") == 0) {
// do something else
}

 

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

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