<?PHP ECHO ‘HECTOR GARZA’; ECHO ‘ANDREA CANTU’; ?>

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

Session 1 & 2BBK P1 Module5-May-2007 : [‹#›] PHP: The Basics.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
PHP for Server-Side Preprocessing Chapter 08. Overview and Objectives Present a brief history of the PHP language Discuss how PHP fits into the overall.
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
BY: ALBERTO CABEZAS 4/19/2010. INTRODUCTION: PHP is considered today as one of the most famous scripting languages. PHP is widely used as a general purpose.
Server-Side vs. Client-Side Scripting Languages
DT228/3 Web Development JSP: Directives and Scripting elements.
Web Programming Introduction to PHP COM Objectives To understand what PHP is and how a PHP script works with a Web Browser and a Web Server To learn.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
PHP: Hypertext Processor Fred Durao
CSC 318 WEB APPLICATION DEVELOPMENT.  Introduction to Server Scripting language  Client VS Server  Introduction to PHP  PHP Files and Syntax  Function.
ITM352 PHP and Dynamic Web Pages: Server Side Processing.
PHP HYPERTEXT: PREPROCESSOR By: Justin T. Pleva. WHAT IS PHP?  General purpose  Server-side web development  Console application.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
PHP == ‘ Hypertext Preprocessor ’ Open-source, server-side scripting language Used to generate dynamic web-pages PHP scripts reside between reserved PHP.
PHP : Hypertext Preprocessor
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
Copyright © Curt Hill PhP History and Introduction.
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
PHP TUTORIAL. HISTORY OF PHP  PHP as it's known today is actually the successor to a product named PHP/FI.  Created in 1994 by Rasmus Lerdorf, the very.
Nael Alian Introduction to PHP
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
November 2003Bent Thomsen - FIT 6-11 IT – som værktøj Bent Thomsen Institut for Datalogi Aalborg Universitet.
CS146 Database Systems &Team Projects Spring 2009.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Open Source Software Unit – 3 Presented By Mr. R.Aravindhan.
Variables and ConstantstMyn1 Variables and Constants PHP stands for: ”PHP: Hypertext Preprocessor”, and it is a server-side programming language. Special.
Fall 2004CSI University of Ottawa Introduction to PHP Basic principles and syntax.
CIS166AE : PHP Web Scripting Rob Loy. Tonight’s Agenda Housekeeping items Housekeeping items PHP basics PHP basics Student connection to server Student.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
PHP Open source language for server-side scripting Works well with many databases (e.g., MySQL) Files end in.php,.php3 or.phtml Runs on all major platforms.
Week 4 PHP H ypertext P reprocessor Reference : Official Site :
Introduction to PHP.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
PHP “Personal Home Page Hypertext Pre-processor” (a recursive acronym) Allows you to create dynamic web pages and link web pages to a database.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Fall 2004CSI University of Ottawa Introduction to PHP Basic principles and syntax.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: Introduction to IS2803 Rob Gleasure
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
1 PHP Intro PHP Introduction After this lecture, you should be able to: Know the fundamental concepts of Web Scripting Languages in general, PHP in particular.
PHP Form Processing * referenced from
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
PHP Tutorial. What is PHP PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
CGS 3066: Web Programming and Design Spring 2016 PHP.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
PHP using MySQL Database for Web Development (part II)
Introduction to Dynamic Web Programming
PHP / MySQL Introduction
BASIC PHP and MYSQL Edward S. Flores.
PHP Introduction.
Intro to PHP.
Tutorial 6 PHP & MySQL Li Xu
Tutorial 10: Programming with javascript
Introduction to PHP.
PHP an introduction.
Web Application Development Using PHP
Presentation transcript:

<?PHP ECHO ‘HECTOR GARZA’; ECHO ‘ANDREA CANTU’; ?>

PHP is a scripting language that brings websites to life in the following ways:  Sending feedback from your website directly to your mailbox  Uploading files through a web page  Generating thumbnails from larger images  Reading and writing to files  Displaying and updating information dynamically  Using a database to display and store information  Making websites searchable

PHP Basics  PHP: Hypertext Preprocessor  Reduces all the clutter and commands of HTML by embedding codes that do specific tasks  Start and end processes are  Allow you to jump in and out of php mode  Code executed on server side and sent to client  The client receives the results but doesn’t know the underlying code  Like a hidden code embedded into HTML page

PHP History  Started as Personal Home Page Tools (PHP Tools) in 1995 with a goal to create a guestbook by gathering information from an online form and displaying it on a web page.  The ability to communicate with a database was later added. With v3 in 1998, the name dropped since it sounded more of a hobbyist’s term. As of Sep. 19, 2013 the latest version is PHP PHP 5 now supports object-oriented programming (OOP).  Easy scripting language with no need of learning lots of theory.

PHP is the language that drives the highly popular Content Management Systems (CMSs)  Drupal  Joomla!  WordPress Also some of the most heavily used websites:  Facebook  Wikipedia

How PHP makes pages dynamic  PHP was originally designed to be embedded into the HTML, which is still used as so.  For Example: o Display current year in a copyright notice, you place this in the footer. o © PHP Copyright o Code is automatically processed in the server o After your New Year’s party, you won’t worry because it will automatically be changed. o Unlike JavaScript to display date, the processing is done on the web server, so it doesn’t rely on JavaScript being enabled in the user’s browser. o Date is calculated by web server, not affected by user’s clock on computer.

What Software do I need to write PHP?  What to look for:  PHP syntax checking  PHP syntax coloring  PHP code hints  Line numbering  A “balance braces” feature (parentheses, brackets, curly braces)  General Purpose Web Development Tools  Dreameweaver CS5+ (adobe.com)  Expression Web (Microsoft.com)  Dedicated script editors  Zend Studio (zend.com)  PhpED (nusphere.com)  PHP Development Tools (eclipse.org)

What Software do I need to write PHP? (continued) What you need:  Web server (Apache)  PHP  MySQL  All-in-one Package  XAMPP for Win (apachefriends.org)  WAMP for Win (wampserver.com)  MAMP for Mac (mamp.info)

How to Write PHP Scripts  PHP is a server-side language. Meaning the webserver processes your PHP code and sends only the results, usually in HTML, to the browser.  Every page must have a PHP filename extension: filename.php  Enclose all PHP code within PHP tags. Opening tag: 1. <?php 2. echo ‘Hello World!’; 3. ?>

A typical PHP page will use some or all of the following elements:  Variables to act as placeholders  Arrays to hold multiple values  Conditional statements to make decisions  Loops to perform repetitive tasks  Functions or objects to perform preset tasks

Naming variables  $variable = value; $name = ‘Pancho’; $year = 2013;  Always begin with a dollar sign ($)  First character after dollar sign cannot be a number  No spaces or punctuation marks, except for underscore (_)  Case-sensitive: $thisYear and $thisyear are not the same  PHP predefined variables (superglobal arrays) begin with an underscore ($_GET, $_POST)

Making Decisions 1. <?php 2. $time = date(“H”); 3. If ($time < “20”) 4. { 5. echo “Have a good day!” ; 6. } 7. else 8. { 9. echo “Have a good night!” ; 10. } 11. ?>

Using Loops 1. while (condition is true) { 2. do something 3. } for ($i = 1; $i <= 100; $i++) { 6. echo “$i ”; 7. }

Advanced PHP  PHP Arrays Multi  PHP Date  PHP Include  PHP File  PHP File Upload  PHP Cookies  PHP Sessions  PHP  PHP Secure  PHP Error  PHP Exception  PHP Filter  PHP Database

Includes… ¿¿que?? The ability to include the contents of one file inside another is one of the most powerful features of PHP.  Every page shares common elements  Header  Footer  Navigation

Connecting to MySQL with PHP

Assignment Create a PHP page with two PHP includes.  Your submission should have at least the following or similar. 1. Index.php a. Add header.php using PHP’s include b. Add footer.php using PHP’s include 2. Header.php a. Navigation links b. Horizontal image/banner 3. Footer.php a. Navigation links b. Copyright info (example: Pancho Villa © 2013)  Submit in Zip/Rar file to: assignment to:

Helpful PHP links