introduction to PHP Programming Language
PHP language was created by RESMUS LERDROF in 1994 and he created it mainly to establish dynamic and active websites by using C and C ++ language since then they have been improving it till it become complete due to the efforts exerted by those who work in it till it become one of the most international languages used and preferred by the majority
THE PHP HAS THREE MAIN ADVANTAGES:
1-NON-Systematic language: it means that you can use it in any operating system it can work on links and windows without having any errors as soon as the code is right
2-part of HTML system: it means that you can easily insert any HTML code or painting in you upcoming applications which means that your language will be combination of HTML AND PHP you can also add GAVA SCRIPT to your PHP
3-works with servers: it means that PHP codes will work on servers and apply it on the HTML not on THE PHP so if you opened any PHP page and see the source you will find it written in HTML although its written on PHP which means that PHP translated by the server and turned to HTML on your page
Most of the websites on the web are dynamic and active so you can open any page and you will find amazing collection of information and you will find also another news website greet you with your name
It is an endless list of creations that can be done by PHP language easily as you can see in the coming lessons
Why the PHP become popular like that?
For many reasons:
1-the language is very simple , easy and also can absorb huge amount of data from other languages like C AND C++
2-most of the service providers provide this service mainly in their webs
3- Thousands of the programmers can use this language easily
Quick comparison between PHP and ASP will show that there is no big difference between them but some users prefer working with ASP as it is produced by Microsoft but as a programmer your main concern is to have program work in any web but the ASP does not work effectively on every web unlike the PHP its non-systematic language also you have to pay for the ASP(to get the license ) but the PHP is open free source
You will need some requirements:-
First: deep focus and to practice on every example
Second: you will need some programs
1-PHP editor (i prefer that one): You can Download it from Here
2-the local server like APPSERVER and PHPTRIAD server as it is powerful From Here
APPSERVER setup method:
1-double click on the program icon you have downloaded from the website
2- The license between the company and user as it works under GNU/GPL license Press I agree to continue
3-pick the place to save the program (i advice not to change the place of setup) c:/APPSERV
4-choose the programs you want to download on your computer:
Apache HTTP Server
MYSQL Database
PHP Hypertext Preprocessor
PHPMYADMIN
Click on the four choices then next
5-APACHE Configuration
in this page we will Prepare the apache:
Server name: for example www.ITExpert.net
Admin email: the manger mail for example [email protected]
HTTP PORT: the APACHE port for apache will be 80 do not change it as it may cause problems
MYSQL PREPERATIONS:
-Root password: it is your password for the database you must know it as you can only enter with it
-Character sets: the stored database language won`t change so as not to cause problems
-if you faced any problems when typing MYSQL API old code the error message that will apears will be “ Client does not support Authentications protocol requested by server, consider upgrading MYSQL client”
so You have to know choose ENABLE INNODB so as not to cause any problems in applying ENABLE INNODB, advanced option when you use the program
7- The last step is to choose this to choices and then click finish the setup to activate the server
After finishing the download you will restart the computer
- Some basics you need to know:
Your device is now ready to use the PHP language codes , but where will you save your PHP files and how will you open it ??
First: the save place
Enter the following pace then c:\ partition after that APPSERV file and then www it will be C:\AppServ\www (which called root file)
You can create file within file in this part under the name WWW to create huge one like a project for example which is more useful
In side it you will find file called MIME.PHP has separate code (not for a specific project )
but for NOJOOM file it is for a project and contains codes like MIMW.PHP
There are some related in between of them
Second: showing PHP on the server
You have to know that as soon as you download & setup the local server , the name LOCALHOST has been taken for it
Open internet explorer and write: http://localhost
It will open the following page that mean you are making progress
Let`s say that we have file called MIME.PHP you will notice that it is existed in separate folder not inside any other folder and before opening it in C:/APPSERV/WWW it will appear as HTTP://LOCALHOST/MIME.PHP
As for NOJOOM file it will appear as /http://LOCALHOST/NOJOOM
the first lesson has finished … i hope i had explained the lesson well
to the next lesson ….Good bye
Related Posts
If you enjoyed this post, please consider to subscribe to the feed and get future articles delivered to your feed reader or leave a comment















facebook comments:
Leave your response!