Introduction To PHP 20 * Introducing the basics of programming * Discovering variables, loops, arrays and conditions * Integrating HTML and PHP Stations.

Slides:



Advertisements
Similar presentations
PHP Form and File Handling
Advertisements

CHAPTER 3 MORE ON FORM HANDLING INCLUDING MULTIPLE FILES WRITING FUNCTIONS.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Chapter 10 Introduction to Arrays
Introduction The concept of “SQL Injection”
Browsers and Servers CGI Processing Model ( Common Gateway Interface ) © Norman White, 2013.
PHP (2) – Functions, Arrays, Databases, and sessions.
DT211/3 Internet Application Development
Multiple Tiers in Action
Introduction to PL/SQL
Guide To UNIX Using Linux Third Edition
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
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.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Creating Databases applications for the Web Reprise. Basic HTML review, forms Preview: Server side vs client side Classwork: create HTML forms and check.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 8: Perl Basics Fundamentals of Web Programming.
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
PHP: Hypertext Processor Fred Durao
Application Development Description and exemplification of server-side scripting language for server connection, database selection, execution of SQL queries.
Advanced Web 2012 Lecture 4 Sean Costain PHP Sean Costain 2012 What is PHP? PHP is a widely-used general-purpose scripting language that is especially.
INTERNET APPLICATION DEVELOPMENT For More visit:
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
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.
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
Class 1Intro to Databases Goals of this class Understand the architecture behind web database applications Gain a basic understanding of what relational.
Designing and Debugging Batch and Interactive COBOL Programs Chapter 5.
_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.
Accessing MySQL with PHP IDIA 618 Fall 2014 Bridget M. Blodgett.
Tutorial 10 Programming with JavaScript
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
© 2001 Business & Information Systems 2/e1 Chapter 8 Personal Productivity and Problem Solving.
Lead Black Slide Powered by DeSiaMore1. 2 Chapter 8 Personal Productivity and Problem Solving.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
CO1552 Web Application Development HTML Forms, Events and an introduction to JavaScript.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Overview: 1. Discussion of the basic architecture of a web application. 2. Discussion of the relevance of using MySQL and PHP in a web application.
Copyright © 2010 Certification Partners, LLC -- All Rights Reserved Perl Specialist.
CHAPTER 9 PHP AND MYSQL. A POSSIBLE SITE CONFIGURATION Application Folder index.php includes (folder)header.phpfooter.phpstyle.cssmodel (folder)mysqli_connect.php.
CSC 2720 Building Web Applications Server-side Scripting with PHP.
Creating PHPs to Insert, Update, and Delete Data CS 320.
What does C store? >>A = [1 2 3] >>B = [1 1] >>[C,D]=meshgrid(A,B) c) a) d) b)
Chapter 15 Introduction to PL/SQL. Chapter Objectives  Explain the benefits of using PL/SQL blocks versus several SQL statements  Identify the sections.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
1 Introduction to Software Testing. Reading Assignment P. Ammann and J. Offutt “Introduction to Software Testing” ◦ Chapter 1 2.
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
Copyright © 2003 ProsoftTraining. All rights reserved. Perl Fundamentals.
Lecture 26: Reusable Methods: Enviable Sloth. Creating Function M-files User defined functions are stored as M- files To use them, they must be in the.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 7 - Introduction to Common Gateway Interface (CGI) Outline 7.1Introduction 7.2A Simple HTTP Transaction.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 1: Introduction to IS2803 Rob Gleasure
PHP Syntax You cannot view the PHP source code by selecting "View source" in the browser - you will only see the output from the PHP file, which is plain.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
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,
PHP Overview. What is PHP Widely available scripting language Free Alternative to Microsoft’s ASP Runs on the Web Server; not in the browser Example:
5 Copyright © 2004, Oracle. All rights reserved. PL/SQL Server Pages.
IST 210: PHP Logic IST 210: Organization of Data IST2101.
JavaScript, Sixth Edition
JSP: Actions elements and JSTL
Introduction to Dynamic Web Programming
Designing and Debugging Batch and Interactive COBOL Programs
Conditions and Ifs BIS1523 – Lecture 8.
PHP.
Web DB Programming: PHP
HYPERTEXT PREPROCESSOR BY : UMA KAKKAR
JavaScript: Introduction to Scripting
Presentation transcript:

Introduction To PHP 20 * Introducing the basics of programming * Discovering variables, loops, arrays and conditions * Integrating HTML and PHP Stations Along the Way © Wiley Publishing All Rights Reserved.

Basics of PHP Programming © Wiley Publishing All Rights Reserved.  Traditional, top-down, global variable  Accurate error feedback  Contains enterprise-level attributes of Java  Low overhead  Easy to use  True cross-platform capability  Allows interaction with the file system

Creating PHP Output © Wiley Publishing All Rights Reserved.  Output can be an action, a message, both, or an error.  Usually output is an action that sends a message to the screen or a Web browser.  Output is generated with the echo function in PHP.

Variables © Wiley Publishing All Rights Reserved.  Variables are information placeholders that have no specific values of their own.  Variables take on values assigned to them by an external method.  Use logical, descriptive names for variables.  A starting value for a variable can be given.  Once a value is assigned to a variable, the value can be referenced with the variable name.  Variables can be stacked (one variable follows another) in a PHP program.

Scalar and Array Variables © Wiley Publishing All Rights Reserved.  Scalar Variables are simple variables that have one value.  Array Variables hold multiple values.

PHP Program Loop  Programming technique that iterates through a list of values one at a time, until complete.  Program looping is done very rapidly.  During a loop, the program can act on members of the list, write a message to the screen, write a file, echo data to the screen and more. © Wiley Publishing All Rights Reserved.

Array Variables and Conditions © Wiley Publishing All Rights Reserved.  Arrays  Database data is appropriate for associative arrays.  Also called key-value pairs (variable-value pairs).  Conditions  Involve a behavior and a consequence.  Usually an if-then or an if-then-else statement.

System Command Programming © Wiley Publishing All Rights Reserved.  Can run any Command Line command in a PHP program.  Below is an example of a PC System Directory Listing <? echo " "; system("dir"); echo " "; ?>  The System function is only for Command Line applications, not for graphical applications.

Embedded SQL © Wiley Publishing All Rights Reserved.  Embedded SQL makes the Web application easier to debug if errors occur.  SQL statements for a PHP file are created the same way as in the Query Builder in SQL view.  Each SQL statement is set equal to a variable.

Error Checking © Wiley Publishing All Rights Reserved.  Error checking consists of validating text that is entered into forms.  Most common error checking, especially if users are entering data into a database, is to prevent blank responses.  A conditional statement checks one or more variables for empty (NULL) values.

Discussion Topics What are variables? How can I incorporate a loop into my program? Is there a correct way to combine HTML and PHP? How do I handle form data?