RE: [PHP] How To Tell Which v. PHP?
| From: | PHPBeginner.com | Date: | Tue, 13 Feb 2001 14:34:13 +0000 |
| Subject: | RE: [PHP] How To Tell Which v. PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39423@lists.php.net to get a copy of this message | ||
it is even cooler to do:
$version = floor(phpversion());
It will then return eigher 3 or 4. I use it all the time while creation
install scripts.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Ankur Verma [mailto:averma@noida.hcltech.com]
Sent: Tuesday, February 13, 2001 3:51 PM
To: jeff@webdesigns1.com; PHP
Subject: Re: [PHP] How To Tell Which v. PHP?
use phpinfo();
Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India
----- Original Message -----
From: "Jeff Oien" <jeff@webdesigns1.com>
To: "PHP" <php-general@lists.php.net>
Sent: Tuesday, February 13, 2001 6:00 AM
Subject: [PHP] How To Tell Which v. PHP?
> Is there a script I can run to tell which version of PHP the
> server is using to run it?
>
> Details:
> Two reasons I ask. One is if I have a client on an unfamiliar
> server with bad or no documentation. Or to test when using
> .htaccess to use the .phtml extension for php3 when the server
> would normally see that as a PHP2 file.
>
> Thanks.
> Jeff Oien
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net