1 / 11

PHP Overview

PHP Overview. MIS 3501, Fall 2014 Jeremy Shafer Department of MIS Fox School of Business Temple University September 23, 2014. Overview. XAMPP m is350.temple.edu HTML5 PHP. XAMPP & mis3501.temple.edu. XAMPP Installed and working Know how to stop and start web services

adena-chang
Télécharger la présentation

PHP Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PHP Overview MIS 3501, Fall 2014 Jeremy Shafer Department of MIS Fox School of Business Temple University September 23, 2014

  2. Overview • XAMPP • mis350.temple.edu • HTML5 • PHP

  3. XAMPP & mis3501.temple.edu • XAMPP • Installed and working • Know how to stop and start web services • Understand what a “document root” is and how it relates to the http://localhost in your browser • mis3501.temple.edu • Know how to upload files. • Understand how your wwwroot relates to the http://mis3501.temple.edu/youraccount URL

  4. Overview: HTML • HTML5 • Know the basic structure <!DOCTYPE html> <html> <head> <title>sample page</title> </head> <body> <p>Hello world</p> </body> </html>

  5. Overview: HTML continued • Know tables <table border='1'> <tr> <th>Shirt Sizes</th> </tr> <tr> <td>Small</td> </tr> <tr> <td>Medium</td> </tr> <tr> <td>Large</td> </tr> </table>

  6. Overview: HTML continued • Know some basic tags <hr> <br> <em> <b>

  7. Overview: HTML continued • Know HTML form basics <form name='myform' action='somepage.php‘ method=‘GET' > Some text: <input type='text' name='txtName' id='txtName'> <input type='submit' name='btnSubmit' id='btnSubmit' value='Go!'> </form> • Know how to use labels <form name='myform' action='somepage.php‘ method=‘GET' > <label for='txtName'>Some text:</label> <input type='text' name='txtName' id='txtName'> <input type='submit' name='btnSubmit' id='btnSubmit' value='Go!'> </form>

  8. Overview: PHP • Code blocks <?php … ?> • Comment blocks /* */ // • Echo • Concatenate strings with . • Statements end with a semicolon ;

  9. Overview: PHP Continued • Variables and operators • Naming rules • Assignment operator = • Arithmetic operators + - * /

  10. Overview: PHP Continued • if statements if (condition) { // statements go here } • while statements while (condition) { // statements go here }

  11. Overview: PHP Continued • The isset function is used to see if a URL token exits • $_GET['token_name_here'] is used to pull data out of the URL • === is used to check if two expressions are equivalent • AND is used to check if two expressions both evaluate to TRUE • OR is used to check if one of two expressions evaluates to TRUE

More Related