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

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

Advertisement: