Re: PHP installation determination
| From: | Bronislav Klucka | Date: | Tue, 28 Mar 2006 18:14:30 +0000 |
| Subject: | Re: PHP installation determination | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232746@lists.php.net to get a copy of this message | ||
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* < konference@pro2-soft.com <mailto:konference@pro2-soft.com>> wrote:Hi, I'm using 2 copies of PHP 1/ on local computer for developing 2/ on web server regular running websIs 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