|
Posted by Captain Paralytic on 11/29/07 11:02
On 28 Nov, 05:34, 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.
A php script does not run under a browser. A browser (or other client
site application) may make a call to a web server. A web server will
go to serve the file and the web sever's configration may tell it that
the file might contain php script and that it should therefore be
presented to the php interpreter. The web server may pass on some
details of the client, but it has no way to verify then as all the web
server receives is an http request.
I love you comment "Thanks to all of you for replying but i still
think there should be a way to know that." Maybe you should start a
petition!
Navigation:
[Reply to this message]
|