PHP is a server side scripting language which means that it runs on the server without the need of any compilation. I am doing this on Win 7. Download and install WAMP server. Start all services.
All the new files that we create should be kept in wamp/www directory. Create a new folder php_sandbox.
In computer security, a sandbox is a security mechanism for separating running programs. It is often used to execute untested code, or untrusted programs from unverified third-parties, suppliers and untrusted users.
Inside the php_sandbox folder, create a new php file named my_phpinfo. The contents of the file is:
<?php phpinfo(); ?>
It gives info about php installed on the system. Go to the web browser and types http://localhost/php_sandbox/my_phpinfo.php . Check out some interesting info on Core section.