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)
[EMAIL PROTECTED]
www.phpbeginner.com
-----Original Message-----
From: Ankur Verma [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 3:51 PM
To: [EMAIL PROTECTED]; 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" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]