Upload Share and Earn

Friday, September 7, 2007

phpinfo() the power of basics

Just open any editor and type the following:

echo phpinfo( );


Save it as info.php or any other name you like.

This simple page gives you everything you need to know about a web server. This function is also used to test your PHP installation. If you are deep into web development then you can easily recount instances when something is working just fine on the local server but when we upload it everything goes WAMP!.

This is mostly because of different versions of PHP/MYSQL ++ or different settings, configuration. I just need to advice everyone to create a file with phpinfo() on your local server and web hosting server. And in the future when you face an unexpected error just compare the two files and I am telling you than you will relate to me big time.

No comments:

 
eXTReMe Tracker