Download xampp or wamp and everything you need to run PHP would be installed with it
Once you install wamp server. Any file with php extenstion like xyz.php you put in www folder will be executed as PHP file.
Assuming you meant windows the OS then you should write it in a text editor such as notepad and save it with the extension .php. You then need to install a web server with PHP installed such as WAMP or XAMPP to run it.
how to create report in php
You need to upload the scripts to web hosting space that support PHP.
You need to install PHP either on a pre built apache server such as xampp or download PHP directly from the website.
The PHP website has a comprehensive online manual that can explain most aspects of PHP, including its installation. See the related links for a constantly-updated PHP installation guide.
Yes, Apache Tomcat supports the installation and usage of PHP (of any version below 5, not including 5). See the related links for an official Tomcat-PHP installation guide.
You can install an entire web server on your flash drive with XAMPP Portable. http://portableapps.com/apps/development/xampp You will need an entire server (at least Apache and PHP) if you want to execute PHP scripts.
Visit the downloads section of the PHP website (see the related links), and find the PHP 5.2 download for your operating system. Install the package accordingly -- which is an entirely customized step, depending on your operating system.
The principle of WAMP/LAMP server is that MySQL, Apache and PHP are staked in a neat package easy to install. However, it is easy to install only the components you need separately.
To test PHP on your computer you can use a localhost. I use XAMPP for my localhost and it hasn't failed me yet.
I have provided you with a two links that will take you through how to install PHP on your computer and how to setup a server so you can run your PHP code. See the relevant link below