PHP 1.Introduction 2.Main areas of using php scripts 3.PHP files 4.Comments in php 5.How PHP works 6.PHP.in
1.Scripting/Programming language(“c-like”) 2.Free and Open source 3.Fast,Open,Stable,Cross-Platform! 4.No Complilation! 5.Easy to use but Extremely Powerful 6.PHP is all about community INTORDUCTION
Three main areas where PHP scripts are used . 1.Server-side scripting. 2.Command line scripting. 3.Writing desktop applications
Server-side scripting This is the most traditional and main target field for PHP. You need three things to make this work. The PHP parser (CGI or server module), a web server and a web browser. You need to run the web server, with a connected PHP installation. You can access the PHP program output with a web browser, viewing the PHP page through the server.
Command line scripting. We can make a PHP script to run it without any server or browser. we only need the PHP parser to use it this way. This type of usage is ideal for scripts regularly executed using cron (on *nix or Linux) or Task Scheduler (on Windows). These scripts can also be used for simple text processing task s
Is probably not the very best language to create a desktop application with a graphical user interface, but if we know PHP very well,would like to use some advanced PHP features in your client-side applications we can also use PHP-GTK to write such programs.We also have the ability to write cross-platform applications this way. PHP-GTK is an extension to PHP, not available in the main distribution Writing desktop applications
PHP files can contain text, HTML tags and scripts. PHP files have a file extension of ".php", ".php3", or ".phtml" PHP code is executed on the server, and the plain HTML result is sent to the browser. A PHP file contains HTML tags and some PHP scripting code. PHP FILES
Comments in PHP In PHP, we use // to make a single-line comment or /* and */ to make a large comment block.
How PHP Works The PHP interpreter processes the page, communicating with file systems, databases, and email servers as necessary, and then delivers a web page to the web server to return to the browser.
PHP . ini 1 . PHP.ini is very useful and it is a configuration file that is used to customize behavior of PHP at runtime. 2 .This enables easy administration in the way that administer Apache web server using configuration files. 3 . The Settings in which upload directory, register global variables, display errors, log errors, max uploading size setting, maximum time to execute a script and other configurations is written in this file.