You are here: Re: Script running under Command Prompt or Browser or some other application? « PHP Programming Language « IT news, forums, messages
Re: Script running under Command Prompt or Browser or some other application?

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]


Удаленная работа для программистов  •  Как заработать на 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

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