PHP AND APPLICATIONS
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
seminar surveyer
Active In SP
**

Posts: 3,541
Joined: Sep 2010
#1
22-12-2010, 04:47 PM


Prepared by:Srinivas H.N


.ppt   PHP applications.ppt (Size: 234 KB / Downloads: 49)

History of PHP
Created by Rasmus Lerdorf in 1995 for tracking access to his resume
Originally a set of Perl scripts known as the “Personal Home Page” tools
Added a forms interpreter and released as PHP/FI: includes Perl-like variables, and HTML embedded syntax

What is PHP?
PHP stands for "Personal Home Page Hypertext Preprocessor”
PHP is a simple yet powerful open source scripting language for creating dynamic web content in Linux and windows.
Easy to create Dynamic web pages in Linux.
Data Abstraction .
A language that combines elements of Perl, C, and Java
An embedded scripting language for HTML like ASP or JSP


Data Abstraction.

PHP does not have a uniform method for accessing database.
Specialized function for each database PHP is able to connect to.
Benefits
allows you to optimize your database code

Core engine (Zend)
Responsible for parsing PHP code,and as such defines the syntax of the programming languages.

Server API (SAPI)
Handles communication and interface with the web server.
Easy to integrate PHP with other server E.g use PHP as an ISAPI module for internet information server(IIS)
Function modules: MySql,XML,IMAP,and so on..
Well documented
Large Library
Good database interaction
Platform Independent.
Since it is a scripting language it can also be use for stand alone applications.

PHP in HTML
<? // Some code ?>
PHP in XML

<?php // Some code here ?php>
PHP in ASP
<% //some codes %>

Code Portability:
if( ereg("WIN", PHP_OS) ) { $ApachePath = “C:/Program Files/Apache Group/Apache”; $ConfigPath = ”$ApachePath/htdocs/conf"; $DataPath = "$ApachePath/htdocs/data"; } $ConfigFile = "$ConfigPath/paperwork.conf"; $CountryList = "$DataPath/countries.txt"; $StateAbbrList = "$DataPath/usstateabbrs.txt"; $StateNameList = "$DataPath/usstatenames.txt";

Code Portability

if( PHP_OS == "Linux" ) { $ConfigPath = "/var/www/conf"; $DataPath = "/var/www/data"; }

The different field where PHP can be used are
Languages (WWW-form Handling) basics

Databas connections

Fun Stuff
generating images data
Cookies

Sessions

Web Servers & Clients :
Browser is a web client
It sends requests to a server

Server responds with the text of the file
Browser formats the text and displays the file.

A cookie is a small file that the server embeds on the user’s computer .
Example:
<?php
setcookie(“uname,$name,time);
?>
<html>
<body>
<p> Cookie is set</p>
</body></html>


PHP uses built in functions in order to connect to database

Example:

<?php
require_once(“Domain name”);
$dbh=Connect(“Par_database);
?>

In PHP, SQL statements can be used to query the database.
Results are set equal to a variable which is of array type
Example:

//below line is the actual query submitted to the database

$statement = "SELECT call_no, title, author, publisher, type_of_material, checked_in, due_back, id, email FROM itl_library_records WHERE call_no ILIKE '$call_no%' ORDER BY call_no";

<?
//query result stored in "$result" variable

$result = $dbh->query($statement);

While($row = $result->fetchRow(DB_FETCHMODE_ASSOC))
{
print(“$row[0]”); //can also be written as … echo “$row[0]”; print(“$row[1]”);
}

• December 2004 survey at
securityspaces_survey/data/man.2004

54% PHP

15% FrontPage

9% Perl

1% Python

PHP is a melting pot of cultures .web designers
appreciates its accessibility and convenience, while
programmers appreciate its flexibility and speed.


Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page

Quick Reply
Message
Type your reply to this message here.


Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  nanochemistry applications ppt jaseelati 0 258 18-12-2014, 02:11 PM
Last Post: jaseelati
  php seminar ppt jaseelati 0 195 18-12-2014, 02:00 PM
Last Post: jaseelati
  PHP seminar surveyer 1 753 03-10-2014, 05:44 AM
Last Post: dgLCqlN
  Computer Science and Applications seminar ideas 2 6,675 20-03-2014, 04:28 PM
Last Post: navasfiroz
  An Artificial Neural Networks Primer with Financial Applications Examples seminar projects maker 0 472 14-09-2013, 04:49 PM
Last Post: seminar projects maker
  Offloading Android Applications to the Cloud without Customizing Android pdf seminar projects maker 0 371 13-09-2013, 03:14 PM
Last Post: seminar projects maker
  Synopsis for Practical Training Seminar PHP study tips 0 236 07-09-2013, 03:40 PM
Last Post: study tips
  Game Theory in Wireless and Communication Networks: Theory, Models, and Applications study tips 0 387 22-08-2013, 03:29 PM
Last Post: study tips
  Embedded Palm Device For Guiding Applications Using ARM-7 and RFID Techniques. seminar paper 1 1,012 12-08-2013, 11:07 PM
Last Post: tamilarasi.k
  Double Guard: Detecting intrusions in multitier web applications seminar flower 5 3,211 30-07-2013, 09:47 AM
Last Post: study tips