RUNNING A PHP SCRIPT UNDER XAMPP SERVER

Slides:



Advertisements
Similar presentations
Adding Dynamic Content to your Web Site
Advertisements

PHP syntax basics. Personal Home Page This is a Hypertext processor It works on the server side It demands a Web-server to be installed.
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
PHP Programming with MySQL Slide 2-1 CHAPTER 2 Getting Started with PHP.
Install WordPress with Xampp. By With Thanks to: Rupesh Kumar.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
What is it? –Large Web sites that support commercial use cannot be written by hand What you’re going to learn –How a Web server and a database can be used.
Multiple Tiers in Action
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
PHP By Dr. Syed Noman Hasany. PHP PHP was originally created by Rasmus Lerdorf in PHP stands for PHP: Hypertext Preprocessor (a recursive acronym).
Chapter 4 Mixing PHP and HTML  In this chapter, you’ll learn how to do the following: -Recognize and use the different kinds of PHP start and end tags.
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
Powerpoint Templates Page 1 Powerpoint Templates Web Programming PHP MySql Ikbal Jamaludin.
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
PHP Forms and User Input The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
NMED 3850 A Advanced Online Design January 26, 2010 V. Mahadevan.
Python CGI programming
INFO 1300: LOCAL DEVELOPMENT 10/16/2015. Index.html Important Homepage for every project in this course Points will be deducted otherwise.
Lab 1 Hello World in PHP CSN Class Lab Activity No. 1.
PHP Teresa Worner. What is it? PHP: Hypertext Preprocessor server-side scripting language open source cross-platform compatible with almost all servers.php.php3.phtml.
Topics Sending an Multipart message Storing images Getting confirmation Session tracking using PHP Graphics Input Validators Cookies.
SIR and the WEB By Dave Doulton University of Southampton.
XAMPP Introduction to Web Programming Kirkwood Community College Fred McClurg © Copyright 2015, Fred McClurg, All Rights Reserved Web Server Software Distribution.
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
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)
Setting up Dreamweaver to use your local WAMP testing Server
 PHP program can be run under various like WAMP, XAMPP etc.  WAMP Server: this server is a web development platform which helps in creating dynamic.
Professor Syed Rizvi.  Download xampp software package from:  windows.html
Unit 1 – Web Concepts Instructor: Brent Presley.
Since you’ll need a place for the user to enter a search query. Every form must have these basic components: – The submission type defined with the method.
Steps to Install VirtueMart 1. Setup Database 2. Download VirtueMart 3. Setup VirtueMart 4. Test installation Prerequisites: 1. XAMPP installation complete.
Server Side Scripting. Common Gateway Interface (CGI) The web is a client-server system.
Creating PHP Pages Chapter 5 PHP Structure and Syntax.
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.
Intro to APACHE, MySQL, and PHP & freely available (hackable) Packages Aonghus Sugrue 04 Oct 2012.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
By Rina Juliana ; Meryan Itoanna ; Riska Nurmalia CREATE A WEBSITE BY OFFLINE.
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:
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
Wordpress. What is Wordpress? Wordpress is a content management system. It is free and easy to use. It allows you to build dynamic websites It is built.
Outline  XAMPP  XAMPP Install  Put php and HTML documents  Windows and Mac Version  Security.
L.A.M.P. İlker Korkmaz & Kaya Oğuz CS 350. Why cover a lecture on LAMP? ● Job Opportunities – There are many hosting companies offering LAMP as a web.
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
Introduction to Web Development (Part 2)
Install WordPress with Xampp
Executing Server-Side Scripts
Introduction to Web programming
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
>> PHP: HTML Integration
Pemrograman V (PHP) “Introduction”
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
Web Browser server client 3-Tier Architecture Apache web server PHP
PHP and Forms.

Introduction to PHP.
Week 1 : Preparation.
PHP By Prof. B.A.Khivsara Note: The material to prepare this presentation has been taken from internet and are generated only for students reference and.
Establish, configure and maintain a website/system
XAMPP.
Presentation transcript:

RUNNING A PHP SCRIPT UNDER XAMPP SERVER

BASICS SERVER CLIENT welcome.php <?php localhost/welcome.php <?php ?> header(‘content-type:text/html’); PHP echo “<u>PHP</u>”; RESPONSE <u> PHP </u> By default, output of PHP is raw data. By default, raw data is sent to client as a response. By default, the output-format of PHP is html.

BASICS SERVER CLIENT welcome.php <?php localhost/welcome.php <?php ?> header(‘content-type:text/plain’); <u>PHP</u> echo “<u>PHP</u>”; RESPONSE <u> PHP </u> By default, output of PHP is raw data. By default, raw data is sent to client as a response. By default, the output-format of PHP is html.

EXAMPLE 1 intro.php <?php header(‘content-type : text/plain’); echo “Introduction to PHP”; echo “\nWelcome \n To \n PHP”; ?> OUTPUT: Introduction to PHP Welcome To PHP

HOW TO RUN PHP SCRIPT UNDER XAMPP SERVER Create a folder named as “php programming” in C:\xampp\htdocs (where htdocs is the XAMPP web server root). Save your file intro.php at C:\xampp\htdocs\php programming. Go to start buttonAll programsXamppopen xampp control panelstart “apache” in XAMPP Control Panel”. Open web browser and type the following statement in address bar localhost\php programming\intro.php

EXAMPLE 2 intro2.php <?php header(‘content-type : text/plain’); echo “Welcome \n To \n PHP”; echo ‘Welcome \n To \n PHP’; ?> OUTPUT: Welcome To PHPWelcome \n To \n PHP

EXAMPLE 3 intro3.php <?php header(‘content-type : text/html’); echo nl2br(“Welcome \n To \n PHP”, false); ?> OUTPUT: Welcome To PHP