lecture 1 php basic introduction

8
Lecture 1: PHP Basic Introduction Presentation by Aamir Javed www.Tech2pk.com

Upload: aamir-awan

Post on 18-Jan-2017

46 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Lecture 1 php basic introduction

Lecture 1: PHP Basic Introduction

Presentation by Aamir Javedwww.Tech2pk.com

Page 2: Lecture 1 php basic introduction

Lecture 1: PHP Basic Introduction

Presentation by Aamir Javedwww.Tech2pk.com

PHP originally stood for Personal Home Page

Now its changedPHP is an acronym for "PHP: Hypertext Preprocessor"PHP is a widely-used, open source scripting languagePHP scripts are executed on the serverPHP is free to download and use

Page 3: Lecture 1 php basic introduction

Lecture 1: PHP Basic Introduction

Presentation by Aamir Javedwww.Tech2pk.com

Before you continue you should have a basic understanding of the following:

HTMLCSSJavaScript

Page 4: Lecture 1 php basic introduction

Lecture 1: PHP Basic Introduction

Presentation by Aamir Javedwww.Tech2pk.com

What is a PHP File?

PHP files can contain text, HTML, CSS, JavaScript, and PHP codePHP code are executed on the server, and the result is returned to the browser as plain HTMLPHP files have extension ".php“

Page 5: Lecture 1 php basic introduction

Lecture 1: PHP Basic Introduction

Presentation by Aamir Javedwww.Tech2pk.com

What is a PHP File?

PHP files can contain text, HTML, CSS, JavaScript, and PHP codePHP code are executed on the server, and the result is returned to the browser as plain HTMLPHP files have extension ".php"

Page 6: Lecture 1 php basic introduction

Lecture 1: PHP Basic Introduction

Presentation by Aamir Javedwww.Tech2pk.com

What Can PHP Do?PHP can generate dynamic page contentPHP can create, open, read, write, delete, and close files on the serverPHP can collect form dataPHP can send and receive cookiesPHP can add, delete, modify data in your databasePHP can be used to control user-accessPHP can encrypt dataWith PHP you are not limited to output HTML. You can output images, PDF files, and even Flash movies. You can also output any text, such as XHTML and XML.

Page 7: Lecture 1 php basic introduction

Lecture 1: PHP Basic Introduction

Presentation by Aamir Javedwww.Tech2pk.com

Why PHP?PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)PHP is compatible with almost all servers used today (Apache, IIS, etc.)PHP supports a wide range of databasesPHP is free. Download it from the official PHP resource: www.php.netPHP is easy to learn and runs efficiently on the server side

Page 8: Lecture 1 php basic introduction

Lecture 1: PHP Basic Introduction

Presentation by Aamir Javedwww.Tech2pk.com

Web Servers for phpPHP Programming language used in following web servers.

*wamp *xampp

Can be access trough typing localhost on your web browser url.