Computer-Masters.net > Articles > Programming > PHP > PHP: Does my server support PHP? Find out PHP Version and details via phpinfo()

Does my server support PHP?

In order to run PHP scripts your server needs to support PHP. It is very easy to examine if your server is capable of running PHP scripts by just trying it with the phpinfo() that prints out all the information about the installed PHP version.


PHP-Script

<?php echo phpinfo(); ?> 1

Upload a file to your server containing the above stated code and name the file *.php (for example test.php).

Thenk open your web browser and navigate to the file on your webserver.

You should either see a page containing all information about the installed PHP version - which means your server supports PHP - or nothing - which means your server doesn't support PHP.

If your server supports PHP you may run any other PHP script supported by the given PHP version.

Links

This article is also available in German on Computer-Masters.de

 

You still have questions?

Feel free to use our comment form that is also available for non-registered users.

The Terms of Use and Posting Guidelines apply.

 

Comments

Comment by siz0948 | 2015-09-24

Works perfect, thanks!

I used this to check if PHP works on my local server. manual installation can be tiresome when you are not experienced...

Computer-Masters.net > Articles > Programming > PHP > PHP: Does my server support PHP? Find out PHP Version and details via phpinfo()

Advertisement: