SQL PHP HTML ASP JavaScript articles and free scripts to download
 

PHP Introduction: What is PHP ?

PHP is a server side scripting language, widely used in internet programming. We can develop pages with dynamic content by using PHP. By using PHP we can interact with database servers and manage the page content accordingly. The difference between a static page like HTML and dynamic page like PHP is the way the server interpret the request.

Here are some resources and downloads for PHP

Download PHP Here

Let us take one simple example.



Server request for static html page by client
When ever request comes for a static html or htm page the web server returns the page to the client. Here script processing or execution is not done. Such pages don't have dynamic capability and content is fixed. In Windows server the web server is IIS and for Linux systems Apache web servers are generally used. However PHP and Apache runs well in Windows platform also. This site is supporting PHP on a Linux platform. In the same way the server can run other scripts like ASP, Perl etc. PHP can be downloaded from www.php.net
Server executes the Script by PHP engine and then post back the data to client
Incase of PHP pages the server does not return the page directly to the client. The web server runs the PHP engine and the output of the executed script is posted back to the client machine.  Depending on the various input conditions the page content can be changed. PHP can easily connect to MySQL database and this combination is very popular in the internet
As per the client side browser it does not understand PHP or any other language. It can understand HTML, JavaScript, CSS etc.

The file extensions for PHP pages.
Web sites are organized at the server like we organize files and folders. So when we open a website one of the default file opens as home page of the site. Read here on how to fix the default page of a website . Usually files with php or php3 ( in old version of PHP ) extensions are files which contain PHP code. Same way we can say the files with .asp are the active server page files contains asp code. But this is not always true. At the server settings we can change the settings and tell the web server which type of files to execute through which engine or scripting language. A file with .htm extension can pass through php engine to execute php codes present inside. Read how IIS is set to pass different extensions through different engines.

However after executing different types engines the final script is posted to user browser which does not contain any PHP, ASP or any other types of scripting language and it only contains HTML and other client side scripts.

Answer these questions..
  1. By using PHP can we manage the layout of a web page ?
  2. Without installing PHP at the server can we execute a php file with php code inside ?
  3. Does the file extension matter ( by default without changing the settings ) at server end for executing scripts.
  4. Can I develop a member login script by using HTML

Click here to open test questions

Next read how to write our first PHP script in our Beginners guide.



Further readings
Introduction to PHP: How scripting languages work
PHP beginners guide
echo command & escape character for string outputs
Adding delay to the script execution time by using sleep function
Disabling a part of the code by using comments in PHP
Printing Numbers 1 to 50 to screen
PHP Info: Details on PHP script settings & installation at server end
PHP.ini file: PHP server configuration setting file for Edit or update
ini_get: PHP function to get configuration settings from php.ini file
ini_set: PHP function to change the configuration settings of php.ini file
PHP Version : What is the version of PHP running at the server
Installing PHP on windows server and IIS
Installing PHP5 on windows server and IIS
Setting up PHP in Windows Vista OS to run in IIS7 web server
Configuration of IIS7 to run PHP scripts with ISAPI module Extension directory of PHP to store dll files for windows

ranjith 05-06-2009
i want the complete tutorial of PHP.
MAKBOOL AHAMAD ANSARI22-06-2009
i would like to learn full php
so i want the complete php tutorial
walter22-06-2009
Would like to learn php,so i want the full tutorial and how to configure it.
khan23-07-2009
can we have a video php tutorial
senthil15-09-2009
i want some sample project with clear coding in only php.
thiloka07-10-2009
what'sthe answer
Md Sadique27-12-2009
I want complete PHP scripts.
nidhi05-01-2010
i want whole php interview question ans and tutorial with demo
harsha20-01-2010
I need simple add save and delete code
Prashant Patil14-03-2010
want some sample project with clear coding in only php.
sakthi16-03-2010
i want to know php with mysql tutorials and also about how to create a table in mysql
Krishna Kumar16-04-2010
i really say thanks www.plus2net.com it helps more to php new learners
phptechie22-06-2010
Great stuff:)
shakamedia24-06-2010
how do I set up the server to accept php uploaded files?
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked


Join Our Email List
Email:  
For Email Newsletters you can trust
Basics
PHP Sections