PHP works on 3 tier architecture
- Client (Browser ,Internet explorer ,Chrome,FireFox, etc..)
- Server (Apache Server ,IIS,etc.. )
- Data base Server(MySql,Sqlite, etc..)
The PHP code is enclosed in PHP tags ,start and end processing tags “ ?>" that helps to run in and out of “PHP mode” between these tag you can write you code of php.
PHP is light-weight scripting language which can easily run on server, it doesnot need any type of configuration to made on server before using it, it is ready to use language with many php built in function . Like echo to display , mail to send php mail and many more ready to use function .
The advantage of using PHP is that its free. You dont need to pay for buying expensive framework and server . Being a open source every thing realated to PHP is free . like LAMP .(Linux apache maySql php)all is free as these are the part of open source.
You don’t need framework to work in PHP , You can write your code on notepad or on any text editor. Since PHP is an open source it is having a large community to help you if you have stuck somewhere.