Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
PHP Basics

PHP Basics

Ratings: (0)|Views: 144|Likes:
Published by dolby3d
PHP basics
PHP basics

More info:

Published by: dolby3d on May 04, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/22/2012

pdf

text

original

 
6/28/20101
What is PHP?
PHP stands for
P
HP:
H
ypertext
P
reprocessor
PHP is a server-side scritin lanuae like JSP
PHP scripts are executed on the server
PHP is an open source software
PHP is free to download and use
PHP files can contain text, HTML tags and scripts
PHP files are returned to the browser as plain HTML
PHP files have a file extension of ".php", ".php3", or ".phtml"
6/28/20101Hassan Khan, PUCIT
Why PHP?
PHP runs on different platforms (Windows, Linux, Unix, etc.)
PHP is compatible with almost all servers used today (Apache, IIS, etc.)
PHP is FREE to download from the official PHP resource:www.php.net
PHP is easy to learn and runs efficiently on the server side
6/28/20102Hassan Khan, PUCIT
 
6/28/20102
PHP Installation
Download PHP
Download PHP for free here:htt://www.h.net/downloads.h 
Download MySQL Database
Download MySQL for free here:http://www.mysql.com/downloads/index.html
Download Apache Server
Download Apache for free here:http://httpd.apache.org/download.cgi
 
6/28/20103Hassan Khan, PUCIT
Configuration of PHP
Install
WAMP
on window or
LAMP
on Linux latform and ou don’t need anconfiguration.ORFor configuration please see the attached document.
6/28/20104Hassan Khan, PUCIT
 
6/28/20103
PHP Syntax
<?php
----------------
?>
<html><body>
<?phpecho "Hello World";?>
</body></html>
6/28/20105HassanKhan, PUCIT
Comments in PHP
<html><body><pp
 // 
This is a comment 
 /* 
This is a comment block 
*/ 
?></body></html>
6/28/20106Hassan Khan, PUCIT

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->