0% found this document useful (0 votes)
62 views6 pages

Understanding PHP: Basics and Functions

The document discusses various PHP concepts including: 1. How redirection works in PHP using the Header() function and the difference between using output buffering or not. 2. The basics of form processing and file uploads in PHP. 3. The differences between GET and POST requests and how sessions and cookies are managed. 4. How to connect to a MySQL database and create cookies. 5. The use of output buffering with ob_start() and concepts like page caching, cross-site scripting, and SQL injection.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views6 pages

Understanding PHP: Basics and Functions

The document discusses various PHP concepts including: 1. How redirection works in PHP using the Header() function and the difference between using output buffering or not. 2. The basics of form processing and file uploads in PHP. 3. The differences between GET and POST requests and how sessions and cookies are managed. 4. How to connect to a MySQL database and create cookies. 5. The use of output buffering with ob_start() and concepts like page caching, cross-site scripting, and SQL injection.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

How PHP Works?

How Redirection works?


Form Processing in PHP
Use of ob_start()
When buffer is off
Server Side Stored Page Web Browser
<html> <html>
<head><title>PHP</title> <head><title>PHP</title>
</head> </head>
<body> <body>
<h1>Welcome</h1> <h1>Welcome</h1>
<?php <?php
Header(“Location:error.html”); Header(“Location:error.html”);
?> ?>

</body> </body>
Use of ob_start()
When buffer is on
Server Side
Stored Page SERVER BUFFER Browser

<html> <html> Location.html


<head><title>PHP</ <head><title>PHP</ti
title> tle>
</head> </head>
<body> <body>
<h1>Welcome</h1> <h1>Welcome</h1>
<?php php<?
Header(“Location:er Header(“Location:erro
ror.html”); r.html”);
?> ?>

</body>
What is PHP?
What is the difference between include and require?
How to upload files using PHP?
Difference between GET and POST ?
Session Management in PHP?
Difference between Session and Cookies ?
How to create a MYSQL connection?
How to create cookies in PHP
Use of ob_start()?
What is Page Caching ?
What is Cross Site Scripting?
How to prevent Cross Site Scripting?
What is SQL injection?
How to Prevent SQL injection?
Difference between include() and require()

You might also like