Intro to PHP at Winthrop CSCI 297 Scripting Languages Day One.

Slides:



Advertisements
Similar presentations
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Advertisements

SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
Multiple Tiers in Action
Apache Tomcat Server Typical html Request/Response cycle
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
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.
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.
1 Homework / Exam Exam 3 –Solutions Posted –Questions? HW8 due next class Final Exam –See posted schedule Websites on UNIX systems Course Evaluations.
PHP : Hypertext Preprocessor
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
CS346 - Javascript 1, 21 Module 1 Introduction to JavaScript CS346.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
University of Sunderland Lecture 1 Internet Software Architectures Lecture 1: Introduction.
PHP. Why should we learn web programming? No need write socket programming. - You can forget TCP/IP & OSI layers. - Web server handles socket tasks for.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
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,
JavaScript – Quiz #9 Lecture Code:
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Web Interfaces, Forms & Databases Databases Snyder p HTML Basics Snyder p JavaScript Snyder Chapter 18.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
CGI Common Gateway Interface. CGI is the scheme to interface other programs to the Web Server.
CHAPTER 7 Form & PHP. Introduction All of the following examples in this section will require two web pages. The first page retrieves information posted.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
Web Architecture Introduction
1 CSC 301 Web Programming Charles Frank. PHP – Stands for:  Personal Home Page (originally),  PHP: Hypertext Preprocessor (now; follows GNU’s recursive.
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
PHP Introduction PHP is a server-side scripting language.
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
USING JAVASCRIPT TO SHOW AN ALERT Web Design Sec 6-2 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
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.
Higher Computing Science Coding the Web: HTML, JavaScript, PHP and MySQL.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
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.
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,
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
Brief Look InTo JavaScript Dr. Thomas Hicks Computer Science Department Trinity University.
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
Database Driven Websites
Intro to PHP at Winthrop
Intro to PHP.
Tutorial 6 PHP & MySQL Li Xu
Web Application Development Using PHP
Presentation transcript:

Intro to PHP at Winthrop CSCI 297 Scripting Languages Day One

PHP O Server-Side scripting language  interpreted, not compiled O PHP code is embedded in HTML O PHP code is run on the server machine by the web server program when someone requests the file O PHP's output is HTML O PHP is Open Source

MySQL O relational database management system O server based O allows multiple users O fast, efficient, robust

JavaScript O client-side programming language O embedded in HTML files O instructs browser to react to particular events, set attributes of HTML elements, etc. O e.g. popup a new window O e.g. check a cookie file O e.g. only submit a form that contains valid entries

Hello World - your PHP code <?php function longdate ($timestamp) { return date("l F jS Y", $timestamp); } echo "Hello World Today is "; echo longdate(time()); ?> hello.php On Deltona this file must end with.php not.html

Hello World - what the user sees

Winthrop's Configuration O Winthrop's PHP server for students is deltona.birdnest.org O Your homepage: O O The deltona web server looks for all web files in your public_html directory. O You can edit your files from any linux box on the Winthrop network. O Your homepage is index.html, not default.htm.

Steps to create your first PHP script 1.Go to your root directory cd 2.Create a public_html directory, if necessary mkdir public_html 3.Make your root directory and the html directory readable by the web server process (it is run by "nobody", not you). chmod a+x. chmod a+x public_html 4.Move to the html directory and create your script file cd public_html vi hello.php chmod a+r hello.php

A Better Example Test Program: Send Form to PHP script Enter your name: simpleform.html

A Better Example The processor of simpleform.html Hello <?php // get name from form $name = $_POST['yourname']; // did they really enter something? if (strlen($name) == 0) echo "whoever you are."; else echo $name; ?> simpleformproc.php

Your First Homework O Type in my hello.php script and get it to work. O Add comments  your name  assignment number O Follow the instructions for ing your work.  use the correct subject line