php lesson 1


Published on

This file is introduction about programs that is needed for learning php.

Published in: Education, Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

php lesson 1

  1. 1. PHP Done by : Amar Bulbul
  2. 2. Tool needed before starting <ul><li>Any type of editor such as notepad,Dreamwaver, or notepad++ (I used notepad ++ it could be download from the internet for free) </li></ul>
  3. 3. Tool needed before starting <ul><li>Any hosting server that support php. </li></ul><ul><li>You could make your localhost server supporting php by downloading the following server </li></ul><ul><ul><li>WAMP for windows users </li></ul></ul><ul><ul><li>MAMP for mac users </li></ul></ul><ul><li>You could download these program from the internet just write the name for the program in google and you will get it </li></ul>
  4. 4. Errors that you may face when downloading WAMP <ul><li>This WAMP Icon </li></ul>
  5. 5. Errors that may you face when downloading WAMP <ul><li>When you click the icon the program will work immediately </li></ul><ul><li>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 </li></ul>
  6. 6. Errors that may you face when downloading WAMP <ul><li>The error will be the following: </li></ul>
  7. 7. To solve the error <ul><li>First make sure that you do not open Skype at the same time. If you are using Skype, turn it off. </li></ul><ul><li>Second if you still have the same error: turn off/disable the IIS </li></ul><ul><li>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) </li></ul>
  8. 8. Where should you save your file? <ul><li>In the c you will find WAMP file </li></ul><ul><li>In the WAMP you will find www folder </li></ul><ul><li>You should save all of your php pages in it. Otherwise, you will not be able to run them. </li></ul><ul><li>You could arrange your php pages in folders under www </li></ul>
  9. 9. Small Example about php <ul><li>Open you editor </li></ul><ul><li>Type the following: </li></ul><ul><ul><li><?php </li></ul></ul><ul><ul><li>echo “Welcome to my page” ; ?> </li></ul></ul><ul><li>Save your page with php extension under www folder </li></ul><ul><li>Do not forgot to by attention to the file type(it should be php file) </li></ul>
  10. 10. Small Example about php
  11. 11. Small Example about php <ul><li>Open your browser write the following </li></ul><ul><li>Localhost/the name of you page.php </li></ul><ul><li>In my case localhost/page1.php </li></ul>
  12. 12. <ul><li>In the next lecture we will learn more about php and we will understand what each symbol means </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.