Website Development & Management A PHP Exercise CIT 3353 -- Fall 2006 www.clt.astate.edu/jseydel/mis3353 Instructor: John Seydel, Ph.D.

Slides:



Advertisements
Similar presentations
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
Advertisements

CIS101 Introduction to Computing Week 08. Agenda Your questions JavaScript text Resume project HTML Project Six This week online Next class.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic JavaScript: Introduction to Scripting.
A simple PHP application We are going to develop a simple PHP application with a Web interface. The user enters two numbers and the application returns.
Website Development & Management More PHP Odds & Ends Instructor: John Seydel, Ph.D. CIT Fall
EGR 106 – Truss Design Project (cont.) Truss design programs Graphical interface tools in Matlab Saving and loading data Formatted output Project Assignment.
IST 221 Internet Concepts and Applications Introduction to PHP.
Electronic Commerce Web Servers & Related Concepts MIS Spring 2006 Instructor: John Seydel, Ph.D.
MCT260-Operating Systems I Operating Systems I Using Text Editors.
Website Development & Management Getting Ready for the Server-Side CIT Fall Instructor: John Seydel, Ph.D.
Website Development & Management PHP Odds & Ends Instructor: John Seydel, Ph.D. CIT Fall
Introduction to PHP (Part-1) Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
FILE UPLOADS CHAPTER 11. THE BASIC PROCESS 1.The HTML form displays the control to locate and upload a file 2.Upon form submission, the server first stores.
Linux & Shell Scripting Small Group Lecture 4 How to Learn to Code Workshop group/ Erin.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Website Development & Management PHP Fundamentals CIT Fall Instructor: John Seydel, Ph.D.
August Chapter 1 - Essential PHP spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information Science and Technology.
Intro to PHP at Winthrop CSCI 297 Scripting Languages Day One.
Website Development & Management Introduction & Overview CIT Fall Instructor: John Seydel, Ph.D.
Chapter 9 Using Perl for CGI Programming. Computation is required to support sophisticated web applications Computation can be done by the server or the.
Create a Website on the CWU network Find “How to Post a Web Page with a PC”
Advanced File Processing
Lab Assignment 7 | Web Forms and Manipulating Strings Interactive Features Added In this assignment you will continue the design and implementation of.
AIT 616 Fall 2002 PHP. AIT 616 Fall 2002 PHP  Special scripting language used to dynamically generate web documents  Open source – Free!!!  Performs.
Website Development & Management Getting to Know HTML Better CIT Fall Instructor: John Seydel, Ph.D.
0 UMN 2011 ERP Terapan ABAP Introduction Session # 8.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Website Development & Management More PHP Fundamentals CIT Fall Instructor: John Seydel, Ph.D.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Includes and Dates.
Website Development & Management Creating Web Pages CIT Fall Instructor: John Seydel, Ph.D.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
Week Three CIT 354 Internet II. 2 Objectives Displaying Dynamic Content Sending Using Your File System Common Programming Errors Summary Quiz,
Website Development & Management Getting Started with Databases Instructor: John Seydel, Ph.D. CIT Fall
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Website Development & Management Going Live with Web Pages (b) CIT Fall Instructor: John Seydel, Ph.D.
Chapter Five Advanced File Processing Guide To UNIX Using Linux Fourth Edition Chapter 5 Unix (34 slides)1 CTEC 110.
Chapter Five Advanced File Processing. 2 Objectives Use the pipe operator to redirect the output of one command to another command Use the grep command.
PHP - Basic Language Constructs CSCI 297 Scripting Languages - Day Two.
CSC 1051 – Data Structures and Algorithms I Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University Course website:
Variables and ConstantstMyn1 Variables and Constants PHP stands for: ”PHP: Hypertext Preprocessor”, and it is a server-side programming language. Special.
Electronic Commerce Server-Side Scripting Exercises MIS Spring 2006 Instructor: John Seydel, Ph.D.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Writing JavaScript Functions. Goals By the end of this unit, you should understand … How to breakdown applications into individual, re-usable modules.
Website Development & Management Going Live with Web Pages (a) CIT Fall Instructor: John Seydel, Ph.D.
Guide to Linux Installation and Administration, 2e1 Chapter 11 Using Advanced Administration Techniques.
Server-Side Scripting with PHP ISYS 475. PHP Manual Website
8 th Semester, Batch 2008 Department Of Computer Science SSUET.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
Files: By the end of this class you should be able to: Prepare for EXAM 1. create an ASCII file describe the nature of an ASCII text Use and describe string.
Creating Databases for Web applications Server side vs client side PHP basics Homework: Get your own versions of sending working: both html and Flash!
Website Development & Management Some Wrap-Up Items Instructor: John Seydel, Ph.D. CIT Fall
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.
PHP Form Processing * referenced from
Unit-6 Handling Sessions and Cookies. Concept of Session Session values are store in server side not in user’s machine. A session is available as long.
Bioinformatics Introduction to Perl. Introduction What is Perl Basic concepts in Perl syntax: – variables, strings, – Use of strict (explicit variables)
IST 210: PHP Basics IST 210: Organization of Data IST2101.
FILES AND EXCEPTIONS Topics Introduction to File Input and Output Using Loops to Process Files Processing Records Exceptions.
Fundamentals of Python: First Programs
Intro to PHP & Variables
Department of Computer Science, Florida State University
Implementing Cookies in PHP
CoreFTP.
Topics Introduction to File Input and Output
Configuring Internet-related services
CoreFTP.
Cmdlets “Command-lets”
Topics Introduction to File Input and Output
PHP-II.
Presentation transcript:

Website Development & Management A PHP Exercise CIT Fall Instructor: John Seydel, Ph.D.

Student Objectives Upon completion of this class meeting, you should: Be able to specify redirection to other pages Become comfortable with string concatenation Be able to format numeric output appropriately Be able to write complex formulae involving exponentiation

Miscellaneous Exam #1 No, it’s not graded ETA: Tuesday Quiz #4 A little better Return Homework due today Exam #1 (on server?)  basis for today’s exercise Job Fair: Where was everybody?! Meloni, Chapters 5-7

Preparing for the Exercise Open these applications Internet Exploiter SmartFTP PHP Designer or NotePad My Computer Copy files from SuSE1 public_html and rename calc_temp.php  calc.php calc_proc_temp.php  calc_proc.php Use c:\ProgramFiles\ApacheGroup\Apache2\htdocs  Delete all original files if possible  Transfer exercise files later to jump drive if desired Create directories on SuSE1 Within public_html  fki Within fki  scripts

Review: Browser/Server Interaction

A PHP Application Note the example Monthly payments Inputs  A = Loan  n = Term (months)  i = Interest (monthly, decimal) Output: monthly payment (Pmt)monthly payment Finally, note the use of the term application No longer simply a web page Instead, an application program with numerous interdependent components  Interface pages Input Output  Include files  Processing units  Other important files

What Needs to be Done Note the handout Form file is complete Processor file (calc_proc.php) needs to be edited View these in the browser Look at all the warnings Why are they there? Open the processor file in an editor Work along as we add the necessary scripting When done, upload files to your /fki/scripts directory on SuSE1

What’s Being Illustrated Rudimentary form validation (server-side) String manipulation Concatenation  Simple operator:.  Assignment operator:.= Mixing literals and variables Escape character PHP functions (refer to Appendix B) header() print() or echo() pow() number_format(value) and number_format(value,places) Fairly complex formula (a common business application) General code development and concurrent testing

Summary of Today’s Objectives Specify redirection to other pages Become comfortable with string concatenation Format numeric output appropriately Write complex formulae involving exponentiation

Appendix

Loan Amortization Formula Let assuming interest (decimal) and term are converted to monthly Then