Send the link below via email or IMCopy
Present to your audienceStart remote presentation
- Invited audience members will follow you as you navigate and present
- People invited to a presentation do not need a Prezi account
- This link expires 10 minutes after you close the presentation
- A maximum of 30 users can follow your presentation
- Learn more about this feature in our knowledge base article
Do you really want to delete this prezi?
Neither you, nor the coeditors you shared it with will be able to recover it again.
Make your likes visible on Facebook?
Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.
PHP: Hypertext Preprocessor
Transcript of PHP: Hypertext Preprocessor
HTML-embedded server side scripting language.
Created in 1995 by Rasmus Lerdorf.
Was initially called Personal Home Page.
PHP code is interpreted by a web server with a PHP processor module which generates the resulting web page:
PHP commands can be embedded directly into an HTML source document rather than calling an external file to process data.
PHP code are executed on the server, and the result is returned to the browser as plain HTML
PHP files have a default file extension of ".php"
Zeev and Andi decided to completely rewrite the scripting language.
They then teamed up with Rasmus to release PHP 3, and along also came a new name: PHP: Hypertext Preprocessor.
At the time of PHP 3’s release in June 1998, the estimated PHP installed base consisted of about 50,000 domains.
It was released in november 1997.
It failed to work out because of the way while loops were implemented.
PHP 4 came with a new paradigm of "compile first, execute later"
PHP 4 was officially released on May 22, 2002,
Submitted To: Mr. Mohit Khandelwal Submitted By: NEHA MENON
SUMMER TRAINING PROJECT
ISPAI ELECTION PORTAL
ISPAI ELECTION PORTAL
ADMIN CONTROL PAGE
HOME PAGE WITH DROP-DOWN
FOR ADMIN CONTROL
TO CHANGE THE LINK
Improved resource handling
Native session handling
Improved object oriented capabilities.
Try/Catch exception handling
Improved web service support
Improved string handling
better garbage collection
better static binding
Why is PHP better??
variables provided via http post
variables defined by Apache
variables provided by the environment
variables provided to the script via http session and cookies
variables are provided via http get(ie. they are in the url)
INSTITUTE OF ENGINEERING AND TECHNOLOGY
INTERNET SERVICE PROVIDERS ASSOCIATION OF INDIA
SESSION and COOKIES
A session is a way to store information (in the form of variables) to be used across multiple pages.
Cookies are stored in the user's browser, and sessions are not.
Cookies keep user information in the browser until deleted.
Sessions works like a token allowing access and passing information while the user has their browser open.
We lose the session when we close the browser.
$_GET and $_POST method
Parameters remain in browser history because they are part of url.
Can be bookmarked.
Should not be used when sending passwords or other security information.
Maximum Size: 7607 characters.
Url example: page2.php?category=sport
Php file is saved with a
Every Php code is enclosed within
<?php .................... ?>
Can also be framed only by
Single Line Comments can be written after
Multi-line comments can be enclosed within
PRINT and ECHO statements
These commands are used to output line of text.
In both the cases statements are enclosed within
<?php echo "I like About" ?>
<?php print "I like About" ?>
I like About
Parameters are not saved in browser history.
Can't be bookmarked.
It's used when sending passwords or other sensitive information.
Maximum Size: 8Mb
Url example: page2.php
A variable in programming is used to represent another value.
In Php all variables start with
sign and it can be a
<?php $a=1; $b=2; $c=$a.$b; echo $c;
Variable value can also be an equation.
$a = 3 + 5;
// value of $a=8
$b = 6 + $a;
// value of $b=14
We can make a variable from a string using
We can combine values using a period
FORM CREATION and DATABASE CONNECTIVITY
name of the textbox
// t1 in this case
","name of the user","
name of database
/*use in the code
//create form as per requirement
NOMINATION LINK WITH NOTIFICATIONS
POST SELECTION PAGE
NOMINATION FORM DETAILS
VOTING LINK WITH NOTIFICATIONS
POST SELECTION PAGE
VOTE CASTING PAGE
LOGIN DETAILS PAGE FOR ADMIN
NOMINATION DETAILS OF USERS
POST SELECTION FOR VOTING DETAILS
VOTING DETAILS OF THE USER
ADDITIONAL DETAILS OF THE USER
PAGE TO SET NOTIFICATIONS DATES
USER INFORMATION DETAILS
EVALUATING RESULTS BY COUNTING VOTES
CONTACT DETAILS PAGE
CHANGE PASSWORD PAGE
UPON CHANGING PASSWORD
IF VOTE IS CASTED AGAIN