PHP AND APPLICATIONS
#1

Prepared by:Srinivas H.N

[attachment=7539]

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
http://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
Popular Searches: php applications, zend breadcrumb, zend headscript, zend baseurl,

[-]
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
  LAMP TECHNOLOGY (LINUX,APACHE,MYSQL,PHP) seminar class 1 3,480 04-04-2018, 04:11 PM
Last Post: Guest
  A survey of usage of Data Mining and Data Warehousing in Academic Institution and Lib seminar class 1 2,125 29-11-2012, 12:56 PM
Last Post: seminar details
  3D computer graphics and applications electronics seminars 2 3,807 31-10-2012, 01:09 PM
Last Post: seminar details
  Intelligent Electronic Devices (IEDs) and Supervisory Control and Data Acquisition computer girl 0 1,148 09-06-2012, 06:01 PM
Last Post: computer girl
  Ontology Description using OWL to Support Semantic Web Applications computer girl 0 1,027 09-06-2012, 02:25 PM
Last Post: computer girl
  Automated and distributed management applications with Jiro technology computer girl 0 939 08-06-2012, 12:25 PM
Last Post: computer girl
  The 8051 Microcontroller and Embedded Systems Using Assembly and C computer girl 0 1,045 04-06-2012, 05:41 PM
Last Post: computer girl
  Digital watermarking: algorithms and applications computer science topics 1 3,660 02-03-2012, 10:20 AM
Last Post: seminar paper
  Finding Bugs in Web Applications Using Dynamic Test Generation and Explicit-State Mod seminar surveyer 2 2,349 14-02-2012, 12:55 PM
Last Post: seminar paper
  AJAX - A New Approach to Web Applications computer science crazy 8 7,304 14-02-2012, 12:55 PM
Last Post: seminar paper

Forum Jump: