If you’re going to use PHP on a website the server needs to be running PHP right? Well duuh! If you work on a variety of websites for a lot of clients, you’re going to deal with different hosts and servers. Before you hook up a form to PHP or whatever else you are planning on doing, you better make sure the server can run PHP if it isn’t.
The quickest way to test servers for PHP is to create a testing PHP file that you can upload to a clients website to see if PHP is running. The good thing about this is you can reuse it for every site. You simply upload this to the server, and try to open it in your web browser. If it works, you’ll see an html page with the info about the PHP running on the server. If it isn’t running PHP, well you won’t see anything!
Keep reading for the code to make your own. I also provide mine as a download to save you time.
If you want to create your own, just create a document called info.php. Within this file paste the following text:
phpinfo();
?>
Once you upload that, try to open it in your browser. If it works, it’ll show the info about the PHP running on the server. If it doesn’t work…well you better call the host.
Speaking of hosts, here’s the host I recommend to all my clients, and use for all of my personal websites, including WebDesignAndSuch.com and BeantownDesign.com
Anyway, back to the PHP topic, here is a info.php file like I mentioned above. Figured I’d save you some time. Happy coding!




