[PHP] PHP installation determination

2006-03-28 Thread Bronislav Klucka

Hi,
I'm using 2 copies of PHP
1/ on local computer for developing
2/ on web server regular running webs

Is there any way to determine what PHP i'm using? Where am I?. Can I 
somehow define my own constant in php.ini?


Brona

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP installation determination

2006-03-28 Thread Bronislav Klucka

Hi,
I didn't mean to able to determine this myself. I was thinking somethink 
like


?php
if (is_debug())  do something
else do something else

function is_debug()
{
  here I need to determine where am I
}

Brona



Dave Goodchild wrote:

Two easy ways - type 'php -v' on the command line or run phpinfo() and 
view the output.


On 28/03/06, *Bronislav Klucka*  [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hi,
I'm using 2 copies of PHP
1/ on local computer for developing
2/ on web server regular running webs

Is there any way to determine what PHP i'm using? Where am I?. Can I
somehow define my own constant in php.ini?

Brona

--
PHP General Mailing List ( http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP installation determination

2006-03-28 Thread Shaunak Kashyap
Try using phpinfo().

http://us2.php.net/manual/en/function.phpinfo.php

In particular you want to pay attention to the $_SERVER variables
(search for PHP Variables in the phpinfo() output).

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.


 -Original Message-
 From: Bronislav Klucka [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 28, 2006 10:08 AM
 To: php-general@lists.php.net
 Subject: [PHP] PHP installation determination
 
 Hi,
 I'm using 2 copies of PHP
 1/ on local computer for developing
 2/ on web server regular running webs
 
 Is there any way to determine what PHP i'm using? Where am I?. Can I
 somehow define my own constant in php.ini?
 
 Brona
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php