0% found this document useful (0 votes)
3 views

dfd

This tutorial introduces the PHP programming language, which is used for creating dynamic web content and applications. It is designed for readers interested in learning the basics of PHP, with prerequisites including a basic understanding of programming and databases. The document also includes copyright information and a disclaimer regarding the accuracy of its content.

Uploaded by

fuaddacad85
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

dfd

This tutorial introduces the PHP programming language, which is used for creating dynamic web content and applications. It is designed for readers interested in learning the basics of PHP, with prerequisites including a basic understanding of programming and databases. The document also includes copyright information and a disclaimer regarding the accuracy of its content.

Uploaded by

fuaddacad85
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

About the Tutorial

The PHP Hypertext Preprocessor (PHP) is a programming language that allows web
developers to create dynamic content that interacts with databases. PHP is
basically used
for developing web-based software applications. This tutorial will help you
understand the
basics of PHP and how to put it in practice.
Audience
This tutorial has been designed to meet the requirements of all those readers who
are
keen to learn the basics of PHP.
Prerequisites
Before proceeding with this tutorial, you should have a basic understanding of
computer
programming, Internet, Database, and MySQL.
Copyright & Disclaimer
© Copyright 2016 by Tutorials Point (I) Pvt. Ltd.
All the content and graphics published in this e-book are the property of Tutorials
Point (I)
Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute
or republish
any contents or a part of contents of this e-book in any manner without written
consent
of the publisher.
We strive to update the contents of our website and tutorials as timely and as
precisely as
possible, however, the contents may contain inaccuracies or errors. Tutorials Point
(I) Pvt.
Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of
our
website or its contents including this tutorial. If you discover any errors on our
website or
in this tutorial, please notify us at [email protected]
PHP
ii
Table of Contents
About the
Tutorial ..........................................................................
.................................................................. i
Audience...........................................................................
................................................................................ i
Prerequisites......................................................................
............................................................................... i
Copyright &
Disclaimer.........................................................................
............................................................ i
Table of
Contents ..........................................................................
.................................................................. ii
PART 1: LEARNING
PHP ...............................................................................
................................ 1
PHP ─
Introduction.......................................................................
.............................................................2
Common Uses of
PHP................................................................................
......................................................2
Characteristics of
PHP ...............................................................................
......................................................3
"Hello World" Script in
PHP................................................................................
.............................................3
PHP ─ Environment
Setup .............................................................................
............................................4
PHP Parser
Installation ......................................................................
..............................................................4
PHP Installation on Linux or Unix with
Apache ............................................................................
...................4
PHP Installation on Mac OS X with
Apache ............................................................................
.........................6
PHP Installation on Windows NT/2000/XP with
IIS ...............................................................................
..........7
PHP Installation on Windows NT/2000/XP with
Apache.............................................................................
....8
Apache Configuration for
PHP................................................................................
.......................................10
PHP.INI file
Configuration......................................................................
........................................................11
PHP ─ Syntax
Overview...........................................................................
................................................15
Escaping to
PHP................................................................................
.............................................................15
Commenting PHP
Code ..............................................................................
...................................................16
PHP is whitespace
insensitive........................................................................
................................................16
PHP is case
sensitive..........................................................................
............................................................17
Statements are expressions terminated by
semicolons.........................................................................
.......17
Expressions are combinations of
tokens.............................................................................
..........................17
Braces make
blocks ............................................................................
...........................................................17
Running PHP Script from Command
Prompt.............................................................................
....................18
PHP ─ Variable
Types .............................................................................
.................................................19
Integers...........................................................................
...............................................................................20
Doubles............................................................................
..............................................................................20
Boolean............................................................................
..............................................................................20
NULL ..............................................................................
................................................................................21
Strings............................................................................
................................................................................21
Variable
Naming ............................................................................
................................................................24
PHP –
Variables..........................................................................
....................................................................24
PHP Local
Variables .........................................................................
..............................................................24
PHP Function
Parameters.........................................................................
.....................................................25
PHP Global
Variables..........................................................................
...........................................................25
PHP Static
Variables..........................................................................
.............................................................26
PHP ─
Constants..........................................................................
............................................................27
PHP ─ Operator
Types..............................................................................
...............................................29
Arithmetic
Operators..........................................................................
...........................................................29
PHP
iii
Comparison
Operators..........................................................................
.................................................

You might also like