|
Posted by Tom on 11/28/07 19:52
On Wed, 28 Nov 2007 13:26:28 -0500, Jerry Stuckle wrote...
>
>Kailash Nadh wrote:
>> On Nov 28, 5:34 am, Ojas <contacto...@gmail.com> wrote:
>>> Hi!,
>>>
>>> I just out of curiosity want to know how top detect the client side
>>> application under which the script is getting run. I mean to ask the
>>> how to know whether the script is running under Command Prompt or
>>> Browser or some other application?
>>>
>>> Ojas.
>>
>> Yep, when a php script is run from the commandline, the two variables
>> $argc and $argv (commandline arguments) are registered.
>> They might be empty, but they still would be registered when being run
>> from the commandline (and not when not in the commandline)
>> http://uk.php.net/features.commandline
>>
>> --
>> Kailash Nadh | http://kailashnadh.name
>>
>
>But that's server side. He asked about client side. And the answer is
>there is no good way.
>
>
I think anything from the client side is unpredictable and unreliable and won't
take my chances with it.
Tom
--
NewsGuy Free Trial Accounts
Now a massive 20 Gigabytes of unrestricted downloads !
http://newsguy.com/
[Back to original message]
|