php lesson 1
DESCRIPTION
This file is introduction about programs that is needed for learning php.TRANSCRIPT
Tool needed before starting Any type of editor such as
notepad,Dreamwaver, or notepad++ (I used notepad ++ it could be download from the internet for free)
Tool needed before starting Any hosting server that support php. You could make your localhost server
supporting php by downloading the following server
WAMP for windows users MAMP for mac users
You could download these program from the internet just write the name for the program in google and you will get it
Errors that may you face when downloading WAMP
When you click the icon the program will work immediately
The icon will be displayed in your task bar. If the color of your icon is green then the program is running. Otherwise, there will be error
To solve the error First make sure that you do not open Skype at
the same time. If you are using Skype, turn it off.
Second if you still have the same error: turn off/disable the IIS
If you still have it, then uninstall the program and re-install it again(sometimes installing new version over and old version might cause this problem)
Where should you save your file?
In the c you will find WAMP file In the WAMP you will find www folder You should save all of your php pages in it.
Otherwise, you will not be able to run them. You could arrange your php pages in folders
under www
Small Example about php Open you editor Type the following:
<?php echo “Welcome to my page” ;
?> Save your page with php extension under www
folder Do not forgot to by attention to the file type(it
should be php file)
Small Example about php
Open your browser write the following Localhost/the name of you page.php In my case localhost/page1.php