Re: PHP installation determination

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx <mailto:konference@xxxxxxxxxxxxx>> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux