You are Here: FAQ ->Scripting and Programming Languages->PHP->PHP Upgrades->Article #3


How can I find out which version of PHP I am using?


Scripts which end in .php3 are handled by PHP4. Since 1&1 has deactivated
support for PHP 3, .php3 files are handled by PHP4.

To find out if the scripts you are using are written in PHP3, you can use the
following methods:

Create a script with the following function and save it to the same directory
as where your scripts are located:
<?php
echo phpversion();
?>

You can also generate a list of all the executable PHP files in your account by
running the following script. This method requires SSH.

At the command prompt, type:
/usr/local/bin/find_my_exe_php_files.sh

This script looks for executable files in your account, then narrows it down to PHP
files (files that have #!/usr/local/bin/php*). The output is produced in a text
file, named {your-account-name}-exe_php_files.txt. The output will only list executable files.


Find out more...
What is the difference between PHP 3 and PHP 4?
How can I check the PHP settings on the server?


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not useful at all):
1 2 3 4 5