Readout the PHP settings of your web server

Many PHP Scripts do need certain preconditions fulfilled before they can work. You can find out these preconditions in the documentary of the script. To prove which conditions your web server can fulfill you can use the following script in the meantime. It can readout the PHP settings of your web server.

This is important, especially if you are relying on free hoster which are often cutting PHP support.

 

Readout the PHP settings of your web server

To readout the PHP settings of your web server, just copy the following snippet into an empty PHP-file. After that, upload the file to your webspace and open it in your browser.

 

Example:

<?PHP
  phpinfo();
?>

 

Explanation and additional notes:

This snippet do readout the PHP settings of your web server and shows them in your browser. You now know, what kind of PHP scripts you’re able to use on your website.

For security purposes you should not make this file publicly available. Either delete it afterwards or upload it into a protected directory on your webspace. Be aware, that many CMS like Joomla or Wordpress, or even your web-hoster itself, give you this functionality already in your administration panel. Have a look there before uploading a new file to your webspace.

 

 


Dir gefällt dieser Artikel?

Leave a Reply

Your email address will not be published.