PHP @550802
PHP @550802
Internet introduction
History
military 1960
4 universities in 1969
students
business
Browser
Internet explorer
Netscape
Opera
Firefox
Android
Chrome
Same but difference
communication
webboard
blog
social network
facebook.com
google plus
education
elearning
article
wikipedia.org
search engine
google.com
yahoo.com
news
cnn.com
thairath.co.th
nationmultimedia.com
entertainment
game
gallery
ecommerce
shopping cart
catalog
members
http://www.thaiall.com/article/internet.html
PHP Introduction
History
1997-2540 php3 by Zeev suraski, Andi gutmans
1994 Rasmus lerdorf
1995 public in PHP
1999 php on red hat linux
Server Translator
Php.net
WAMP
Appservnetwork.com
Thaiabc.com
Omnihttpd
Compiler
Zend
Hello world
<? ?>
<?php ?>
<script language="php">
<?=$a; ?>
Reference
กิติศักดิ์ เจริญโภคานนท์ successmedia.com
วรรณิกา เนตรงาม infopress2000.com
web server
apache
Http 80
Browser
Client - server
2.2.22
/xampp/apache/conf/http.conf
php
Server sided script
5.4.5
Phpinfo()
/xampp/php/php.ini
mysql
Version 4 - 5
Management
select
insert
delete
update
5.0.10 in xampp
/xampp/mysql/bin/my.ini
phpmyadmin
Online management
/xampp/phpmyadmin/config.inc.php
include httpd-xampp.conf
alias in httpd-xampp.conf
Wamp
xampp 1.8.0
apache
port 80
mysql
port 3306
filezilla
port 21
mercury
port 25
port 110
thunderbird mail client
tomcat
port 8080
jsp
java
appservnetwork.com
2.5.10
2.4.9
thaiabc.com
6.0
Web hosting
Where
Price
Payment
Specification
OS
Language
Bandwidth
Database
Apps
Back office
Profile
Contact
success story
http://www.thaiall.com/webserver
HTML
Editor tools
Dreamweaver
Word
Namo
Frontpage
First level
Head - title - body
Br - hr
B, I, U
Font
Image
Link
Version 3, 4, xhtml, 5
http://www.thaiall.com/html
Second level
Iframe
Frame
Table
CSS
Third level
Text, password
Name
Value
Size
Maxlength
Submit, reset
Textarea
Cols, rows
Option
Select
Option, value
Size
Checkbox
Difference name
Checked
Radio
Value
Same name
Button
javascript
http://www.thaiall.com/html
Javascript
Dynamic html
Time
Document
Request
Ajax
http://www.thaiall.com/java
Plug-in
Truehits.net
Twitter.com
Facebook.com
http://www.thaiall.com/blog
php structure
comparison operation
==
===
!=
<>
!==
<
>
<=
>=
increment
$i = $i + 1;
$i++;
$++i;
$i+=1;
sequential
echo, print
,
.
Get - post
Casting
(int)$a;
int,integer,real,double,float,string
array
object
Settype(), gettype()
decision
If
If. Else
If. Elseif
repetition
1 - 10
For
While
Foreach
function
Function a() { }
Function a($b) { }
Function a() { return 5; }
Function a($b) { return $b * 2;}
External file
Require
include
Can be in loop or if
Memory
Cookies
function setcookie
$_COOKIE['A']
Session
function session_start
$_SESSION['A']
http://www.thaiall.com/php
php function
strlen, strtolower, trim
left
explode
split
Date, time, $_SERVER[ 'REQUEST TIME']
is_dir, is_file
Network
Gethostbyname
Gethostbyaddress
Other function
Mail
Excel
Image
Flash
Ajax
http://www.php.net
php mysql
Database
Text file
Mysql
Microsoft Access
Odbc
select
All records
Where
Order
insert
String
Number
delete
One record
All records
update
One field
Many field
http://www.thaiall.com/mysql
php tips
dropping bracket { }
use single &double quotes
use dot & double quotes
else for readable, not performance
use ternary operation ? :
use post not get or request
suppression operation
$a = @$b;
$a =& $b;
inbuild function
array_rand
strip_tags
strftime
basename
list
range
isset
strlen
str_replace, ereg_replace, preg_replace
use function
error_report(E_ALL)
check before injection
use oop, class
http://www.thaiall.com/php5
Case study
Design
Title - keyword
Header - footer
Seo
http://www.thaiall.com/seo
Random banner
Webboard
Guest book
Counter
php script
http://www.wordpress.com
http://www.moodle.org
http://www.postnuke.com
http://www.joomla.com
http://www.mambo.com
http://www.phpbb2.com
Tools
http://www.thaiall.com/freemind
http://www.thaiall.com/office