How to test the PHP installation.


I had forgot one important component in the PHP programming, the Editor. The editor is very important to help you in efficient programming, it can help you with code-assist, code-complete(tag completion), code alignment, etc..

So now get hold of a good PHP editor(I use Easy-eclipse for PHP), and type in the following code-

<html>
<head>
<title>PHP Test</title>
</head>
<body>

This is an HTML line
<?php
echo “This is a PHP line”;
phpinfo();
?>
</body>
</html>

This is arguably the most popular PHP code. The above code’s output is the complete information about the PHP version you have installed and its modules..
Try it.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s