PHPJavascript

Web Development Guide – My Personal Library of Tutorials and Scripts

phpinfo() the power of basics

May30

I am writing this weblog as a tribute to phpinfo() function, if you think I have lost my cork you have to think again.

Just open any editor and type the following:

<html><head>
<title>PHPINFO</title>
</head>

<body>
<? phpinfo(); ?>
</body>
</html>
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.

posted under PHP

Email will not be published

Website example

Your Comment:

 

12,829 spam comments
blocked by
Akismet