0% found this document useful (0 votes)
12 views2 pages

PHP Handwriting Manual Full Part1

PHP, or Hypertext Preprocessor, is an open-source scripting language executed on the server that can generate dynamic content and interact with databases. It is compatible with various platforms and servers, making it easy to learn and use. PHP scripts begin with <?php and can include comments, variables, and various functionalities like file handling and user access control.

Uploaded by

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

PHP Handwriting Manual Full Part1

PHP, or Hypertext Preprocessor, is an open-source scripting language executed on the server that can generate dynamic content and interact with databases. It is compatible with various platforms and servers, making it easy to learn and use. PHP scripts begin with <?php and can include comments, variables, and various functionalities like file handling and user access control.

Uploaded by

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

PHP Handwriting

1. Introduction to PHP

• PHP stands for Hypertext Preprocessor.

• PHP is a widely-used, open source scripting language.

• PHP scripts are executed on the server.

• PHP is free to download and use.

• PHP files can contain text, HTML, CSS, JavaScript, and PHP code.

• PHP code is executed on the server, and the result is returned to the browser as plain
HTML.

2. What Can PHP Do?

• PHP can generate dynamic page content.

• PHP can create, open, read, write, delete, and close files on the server.

• PHP can collect form data.

• PHP can send and receive cookies.

• PHP can add, delete, modify data in your database.

• PHP can be used to control user access.

• PHP can encrypt data.

3. 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 databases.

• PHP is free. Download it from the official PHP resource: www.php.net

• PHP is easy to learn and runs efficiently on the server side.

4. Basic PHP Syntax

• A PHP script starts with <?php and ends with ?>

• PHP statements end with a semicolon ;


Example:

<?php
echo "Hello World!";
?>

5. PHP Comments

• PHP supports single-line and multi-line comments.

Single-line comments: // or #

Multi-line comments: /* */

Example:

<?php
// This is a single-line comment
# This is also a single-line comment
/* This is a
multi-line comment */
?>

6. PHP Variables

• Variables in PHP start with the $ sign, followed by the name of the variable.

• A variable name must start with a letter or the underscore character.

• A variable name cannot start with a number.

• A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and
_)

Example:

$txt = "Hello world!";

You might also like