Introduction to CS520/CS596_026 Lecture Two Gordon Tian 408-668-5680 Fall 2015.

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

CLIENT –server SIDE SCRIPTING
Java Script Session1 INTRODUCTION.
Javascript Client-side scripting. Up to now  We've seen a little about how to control  content with HTML  presentation with CSS  Javascript is a language.
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
Guide To UNIX Using Linux Third Edition
Introduction to PHP (Part-1) Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
PHP By Dr. Syed Noman Hasany. PHP PHP was originally created by Rasmus Lerdorf in PHP stands for PHP: Hypertext Preprocessor (a recursive acronym).
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
Introduction to PHP. PHP PHP is the Hypertext Pre-processor –Script language –Embedded into HTML –Runs as Apache module –Can use DB (MySQL, Oracle, Microsoft.
SJSU CS157B Dr. Lee1  2004 Jenny Mitchell Two Useful Tools You Can’t Live Without by Jenny Mitchell SJSU CS157B Section PHP and MySQL.
Chapter 4 – The Building Blocks Data Types Literals Variables Constants.

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.
ASP.NET Programming with C# and SQL Server First Edition
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.
Nael Alian Introduction to PHP
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Open Source Software Unit – 3 Presented By Mr. R.Aravindhan.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Variables and ConstantstMyn1 Variables and Constants PHP stands for: ”PHP: Hypertext Preprocessor”, and it is a server-side programming language. Special.
PHP. What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server.
Introduction to PHP Advanced Database System Lab no.1.
What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports.
Chapter 15 Introduction to PL/SQL. Chapter Objectives  Explain the benefits of using PL/SQL blocks versus several SQL statements  Identify the sections.
Server-Side Scripting with PHP ISYS 475. PHP Manual Website
Introduction to PHP.
Summary 1 Gordon Tian CS520/CS596_026. HTTP Browser – Chrome | FireFox XML/HTML/CSS3/JavaScript/REST Web Server – Nginx PHP/Python/Perl/Java/Ruby/Node.js.
IT ELECTIVE 2.  Web server Can refer to either the hardware (the computer) or the software (the computer application) that helps to deliver content that.
PHP Introduction PHP is a server-side scripting language.
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Web Database Programming Using PHP.
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.
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,
Introduction to Database C# MySQL onnect-C-to-MySQL 1.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
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.
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
PHP using MySQL Database for Web Development (part II)
Cygwin: getting the setup tool
C LANGUAGE MULITPLE CHOICE QUESTION SET-2
Introduction to Dynamic Web Programming
PHP (PHP: Hypertext Preprocessor)
PHP / MySQL Introduction
PHP Introduction.
WEB PROGRAMMING JavaScript.
Software Engineering for Internet Applications
PHP.
MSIS 655 Advanced Business Applications Programming
Web DB Programming: PHP
HYPERTEXT PREPROCESSOR BY : UMA KAKKAR
IntroductionToPHP Static vs. Dynamic websites
Intro to PHP.
Tutorial 6 PHP & MySQL Li Xu
Tutorial 10: Programming with javascript
Introduction to PHP.
PHP an introduction.
Hypertext Preprocessor
SEEM 4540 Tutorial 4 Basic PHP based on w3Schools
Web Application Development Using PHP
Presentation transcript:

Introduction to CS520/CS596_026 Lecture Two Gordon Tian Fall 2015

Cygwin POSIX (Portable Operating System Interface) is a set of standard operating system interfaces based on the Unix operating system. Unix was selected as the basis for a standard system interface partly because it was "manufacturer-neutral." Cygwin is a distribution of popular GNU and other Open Source tools running on Microsoft Windows. The core part is the Cygwin library which provides the POSIX system calls and environment these programs expect.

Cygwin Install Download the 32-bit or 64-bit based on your laptop CPU Install directory c:\cygwin

Install Nginx/MySQL/PHP WT-NMP Install Directory: c:\cygwin\home\$USER c:\cygwin Pay attention to directory security settings Start WT-NMP Test it by going to URL localhost or

Running MySQL on Cmd In start menu, Right click Computer → Properties → Advanced System Settings → Advanced → Environment Variables → System Variables → Path Add this c:\cygwin\home\laptop\wt-nmp\bin; after c:\;c:\ Open Windows Cmd to log into MySQL Set MySQL root password to svuwins using mysql update Add a new user svu and set its password svuwins using HeidiSql Flush Privileges - The FLUSH statement causes the server to reread the grant tables. Without it, the password change remains unnoticed by the server until you restart it.' Add user by: Grant all on *.* to identified by '' SHOW GTRANTS FOR

Create/Delete database Create database; Drop database;

CRUD CRUD - Create Read Update Delete

HTML Tag The tag is used to create an HTML form for user input. The element can contain one or more of the following form elements:

PHP Basics PHP is a recursive acronym for "PHP: Hypertext Preprocessor". PHP is a server side scripting language that is embedded in HTML. It is used to manage dynamic content, databases, session tracking, even build entire e- commerce sites. It is integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server. PHP is pleasingly zippy in its execution, especially when compiled as an Apache module on the Unix side. The MySQL server, once started, executes even very complex queries with huge result sets in record-setting time. PHP supports a large number of major protocols such as POP3, IMAP, and LDAP. PHP4 added support for Java and distributed object architectures (COM and CORBA), making n-tier development a possibility for the first time. PHP is forgiving: PHP language tries to be as forgiving as possible. PHP Syntax is C-Like. PHP is Object Oriented Language When the end of a file is reached, PHP automatically releases all resources.

PHP Tag Canonical PHP tags

PHP Expression/Statement Case sensitive Expressions are combinations of tokens The smallest building blocks of PHP are the indivisible tokens, such as numbers ( ), strings (.two.), variables ($two), constants (TRUE), and the special words that make up the syntax of PHP itself like if, else, while, for and so forth Statements are expressions terminated by semicolon s

PHP Variables All variables in PHP are denoted with a leading dollar sign ($). The value of a variable is the value of its most recent assignment. Variables are assigned with the = operator, with the variable on the left-hand side and the expression to be evaluated on the right. Variables can, but do not need, to be declared before assignment. Variables in PHP do not have intrinsic types - a variable does not know in advance whether it will be used to store a number or a string of characters. Variables used before they are assigned have default values. PHP does a good job of automatically converting types from one to another when necessary. PHP variables are Perl-like.

PHP Data Types Integers − are whole numbers, without a decimal point, like Doubles − are floating-point numbers, like or Booleans − have only two possible values either true or false. NULL − is a special type that only has one value: NULL. Strings − are sequences of characters, like 'PHP supports string operations.' Arrays − are named and indexed collections of other values. Objects − are instances of programmer-defined classes, which can package up both other kinds of values and functions that are specific to the class. Resources − are special variables that hold references to resources external to PHP (such as database connections).