Website Development & Management Getting Ready for the Server-Side 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

Windows Apache MySQL PHP Radoslav Georgiev Telerik Corporation
PHP Programming with MySQL Slide 2-1 CHAPTER 2 Getting Started with PHP.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Website Development & Management PHP Odds & Ends Instructor: John Seydel, Ph.D. CIT Fall
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Linux Operations and Administration
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
E-Commerce LAB#1 Samia alblwi1E-Commerce ( IS412) 2011.
Website Development & Management PHP Fundamentals CIT Fall Instructor: John Seydel, Ph.D.
Website Development & Management Introduction & Overview CIT Fall Instructor: John Seydel, Ph.D.
DB2 (Express C Edition) Installation and Using a Database
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
The audio will be turned on just before our start time at 7:00 pm ET.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Advance Database Management Systems Lab no. 5 PHP Web Pages.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
CO1552 Web Application Development HTML Forms. Websites can be made more interactive by providing facilities for users to provide data To get user entered.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Web Servers1-1 Web Servers Xingquan (Hill) Zhu
Website Development & Management Getting to Know HTML Better CIT Fall Instructor: John Seydel, Ph.D.
Website Development & Management More PHP Fundamentals CIT Fall Instructor: John Seydel, Ph.D.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Installation of Apache, PHP & MySQL Tutor: Zhang lidan Office: 312 Chow Yei Ching
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Website Development & Management Creating Web Pages CIT Fall Instructor: John Seydel, Ph.D.
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Apache, MySQL and PHP Installation and Configuration Chapter 3 PHP Installation and Configuration.
Website Development & Management Getting Started with Databases Instructor: John Seydel, Ph.D. CIT Fall
Tomcat Setup BCIS 3680 Enterprise Programming. Getting Web Apps to Work  Verify that Tomcat works.  Understand how context works.  Create folders/files.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Website Development & Management Going Live with Web Pages (b) CIT Fall Instructor: John Seydel, Ph.D.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Topics Sending an Multipart message Storing images Getting confirmation Session tracking using PHP Graphics Input Validators Cookies.
Website Development & Management Going Live with Web Pages (a) CIT Fall Instructor: John Seydel, Ph.D.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
©John Samuel 2008 Introduction to PHP. ©John Samuel 2008 Objectives At the end of this class the student will be able to; Create and run a simple php.
Website Development & Management A PHP Exercise CIT Fall Instructor: John Seydel, Ph.D.
WAMP Windows Apache MySQL and PHP i.e. “WAMP”. Why WAMP? WampServer is a Windows web development environment. It allows you to create and test web pages.
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)
CITA 310 Section 7 Installing and Testing a Programming Environment (Textbook Chapter 7)
Lecturer : 이선아  APM  Apache  PHP  MySQL.
MySQL Getting Started BCIS 3680 Enterprise Programming.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
PART 2 INTRODUCTION TO DYNAMIC WEB CONTENT AND PHP.
Setting up Dreamweaver to use your local WAMP testing Server
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: 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.
: Information Retrieval อาจารย์ ธีภากรณ์ นฤมาณนลิณี
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
MySQL Getting Started BCIS 3680 Enterprise Programming.
Building Your Own Website Using:. Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
9/21/04 James Gallagher Server Installation and Testing: Hands-on ● Install the CGI server with the HDF and FreeForm handlers ● Link data so the server.
WampServer 2 Installation WAMP is a solution stack of open source programs used together to run dynamic Web sites or servers Most common expansion:  Windows,
Apache Tomcat & Quick Tutorial
QOF Assessor Validation Report Generator
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Chapter 2 Getting Started with PHP PHP Programming with MySQL
XAMPP.
Presentation transcript:

Website Development & Management Getting Ready for the Server-Side CIT Fall Instructor: John Seydel, Ph.D.

Student Objectives Upon completion of this class meeting, you should be able to: Install PHP-related development software Create simple web forms

First, Let’s Resolve Some SSI and Other IssuesSSI Your PHP repertoire, so far Script delimiters Variables  Naming  Assigning string literals Functions  echo()  include() First and second tier SSI versions Modify footer to include link home Questions/problems? XML declaration Other...

Now, an Intro to Forms Forms are what made eCommerce feasible Get info from user Display info back to user That is, they add interactivity ! Working with forms involves Forms page Forms processor, either  Client-side or  Server-side, or  Both (local validation then server-side processing)

HTML Forms in Brief At lowest level, a form consists of two elements: Form   The overall container element Input data collection control   A variety of types (textboxes, checkboxes, buttons, etc.) exist and are designated by the type attribute Example: Class: Several other data collection controls exist

Getting Started with Forms Main element is Attributes:  id (for object references in scripts)  action (where the form processor is)  method (usually post but sometimes get) Should be only one per page (for our purposes) All controls must be within... Form controls  input (many types)  button  select  textarea Forms also typically contain standard inline (e.g., ) and block (e.g., ) elements

Basic Forms Example Suzy Student GuestbookGuestbook Look at the tags Elements Attributes Note the action attribute This is the form processor Use any URL, including However, submission is very undependable

Our PHP Environment (LAMP) The components Operating system  Linux (production machine)  LAMP  Windows (development machine)  WAMP MySQL: the DBMS and server Apache: the web server PHP: the scripting engine For best results, install in that order Before downloading Make sure you have administrator permissions Stop IIS if it’s running Create a desktop folder Downloads

The Installation Process: MySQL Generally follows procedure given in Meloni textbook Download mysql win.zip from course Handouts page (or from MySQL.com) into Downloads directory Uncompress into a default temporary directory and then open that directory Double-click on SETUP.EXE and accept all defaults as the installation wizard runs Test the installation Run c:\mysql\bin\winmysqladmin.exe Provide a username and password you’ll remember (generally, these won’t be used again, ever) Note the stoplight now on taskbar at bottom right MySQL’s database server now starts upon bootup For now, go no further (i.e., not beyond p. 8)

The Installation Process: Apache Again, ensure that IIS is stopped Also follows procedure given in Meloni textbook but with some variations; assumes you’ll be installing PHP right away Download apache_ win32-x86-no_ssl.msi from course Handouts page (or from Apache.org) into Downloads directory Double-click on apache_ win32-x86-no_ssl.msi Accept defaults as the installation wizard runs Don’t worry for now about Server Information panel Verify the installation Note the feather icon near the right end of the taskbar Point browser to (output displayed on p. 29 should appear) Modify the configuration...

Modifications to Apache Edit the configuration file: c:\Program Files\Apache Group\Apache2\conf\httpd.conf Specify server settings: Find ServerAdmin statement and set the argument to your address Find ServerName statement and set the argument to your IP address or to Two more changes: Add to the end of the LoadModule section LoadModule php5_module c:/php/php5apache2.dll Add to the end of the AddType section AddType application/x-httpd-php.phtml.php Do not restart Apache until after installing PHP

The Installation Process: PHP Varies somewhat from procedure given in Meloni textbook Download php Win32.zip from course Handouts page (or from PHP.net) into Downloads directory Uncompress into a permanent directory (c:\php) and then open that directory Configure PHP (see next slide) Restart Apache Click on taskbar icon (feather) Then Apache2 | Restart

Configuring PHP Make changes to files Copy c:\php\php.ini-dist to c:\WINDOWS Rename c:\WINDOWS\php.ini-dist to c:\WINDOWS\php.ini Edit c:\WINDOWS\php.ini  Open in NotePad  Find and uncomment (remove “;”) extension=php_mysql.dll  Find and set error reporting configuration error_reporting = E_ALL & ~E_NOTICE display_errors = On  Setup for (example) SMTP = smail.astate.edu sendmail_from =  Save and close the file Copy c:\php\php5ts.dll to c:\WINDOWS\system Copy c:\php\ext\php_mysql.dll to c:\WINDOWS\system Copy c:\mysql\bin\libmysql.dll to c:\WINDOWS\system Restart Apache

If Modifications are Needed Apache: Modify the httpd.conf file and then restart Located in C:\Program Files\Apache Group\Apache2\conf PHP: Modify the php.ini file and then restart Apache Located in C:\WINDOWS MySQL: we’ll address this later

Summary of Today’s Objectives Create simple web forms Install PHP-related development software

Appendix

Browser/Server Interaction

Server-Side Include Exercise Locally, make 4 copies of index.html index.php header1.shtml header2.shtml styles1.shtml Edit these files, save them, and post them to SuSE1 header1.shtml: remove all before and after footer1.shtml: remove all before and after last styles1.shtml: remove all before and after index.php (first remove XML directive, for now)  Remove all between and inclusive  Insert:  Remove all between and inclusive  Insert:  Remove all between and last inclusive  Insert: