FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Detecting Redirected Output
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Detecting Redirected Output [message #174117 is a reply to message #174111] Sun, 22 May 2011 13:04 Go to previous messageGo to previous message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma:
Senior Member
In news:ir9v2l$rnv$2(at)dont-email(dot)me,
Jerry Stuckle <jstucklex(at)attglobal(dot)net> typed:
> On 5/21/2011 9:06 PM, Bob Smith wrote:
>> Running under Win7, a script I'm writing needs to vary
>> its behavior depending upon whether or not the output
>> from PHP is being redirected. That is, I want to know
>> from within the PHP script whether it's called as php foo.php
>>
>> or
>>
>> php foo.php > outfile
>>
>> None of the Output Control Functions appears to be
>> helpful. Way back in DOS days, there was an IOCTL call which the
>> program could use to distinguish those two cases. Is
>> there anything comparable in PHP?
>
> Nope. Not possible in PHP. And it shouldn't be, either.
> The purpose of a redirect is to be able to save the
> output.

So says the exalted high troll of the newsgroups whose only intent in life
is to issue meaningless and uncalled for criticisms in order to make up for
his own lack of power by stealing it from others.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: populate pulldownbox from query
Next Topic: You have an error in your SQL syntax;
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 18:32:40 GMT 2024

Total time taken to generate the page: 0.04994 seconds