
PHP is typically used in combination with a Web server like Apache it can also be in IIS. Requests for PHP scripts are received by the Web server, and are handled by its PHP interpreter. The results obtained after execution are returned back to Web server, which is responsible to transmit back to the client browser. In the PHP script itself, you can make what you want. Example: you want to process user input, massive calculations, write and read files, or you interact with a database.
There is only one essential concept that you need to get into your mind around before we proceed further. Unlike CGI scripts, which require you to write code to output HTML, PHP lets you embed PHP code in regular HTML pages, and execute the embedded PHP code when the page is requested. These embedded PHP commands are enclosed within special start and end tags, like this:
<?php ...Your PHP code here... ?>
Sounds so critical that some of the people just dont know where to start and give up without even trying.Learning php may not be as overwhilming as it might seem,but if you just take it one step at a time, and before you know it you'll be off and running.