Download presentation
Presentation is loading. Please wait.
Published bySherman Parker Modified over 9 years ago
1
Chapter 1 Introduction to PHP Part 1
2
Textbook’s Code http://www.larryullman.com/ DOWNLOADS PHP and MySQL for Dynamic Web Sites Complete Set of Scripts and Commands
3
first.php Script 1.2 on page 3 http://csweb.hh.nku.edu/csc301/frank/ch01/f irst.php http://csweb.hh.nku.edu/csc301/frank/ch01/f irst.php ch01\first.php
4
second.php Script 1.3 on page 7 http://csweb.hh.nku.edu/csc301/frank/ch01/s econd.php http://csweb.hh.nku.edu/csc301/frank/ch01/s econd.php ch01\second.php
5
echo echo ‘Hello, world!’; echo “What’s new?”; print ‘Hello, world!’; print “What’s new?”; echo “She said \”How are you?\””;
6
comments.php Script 1.4 on page 11 http://csweb.hh.nku.edu/csc301/frank/ch01/c omments.php http://csweb.hh.nku.edu/csc301/frank/ch01/c omments.php ch01\comments.php
7
predefined.php Script 1.5 on page 15 http://csweb.hh.nku.edu/csc301/frank/ch01/ predefined.php http://csweb.hh.nku.edu/csc301/frank/ch01/ predefined.php ch01\predefined.php
8
variables Starts with a $ – $amount
9
Variable types Boolean (TRUE or FALSE) Integer Floating point String Resource (used with databases) NULL (has no value)
10
Assignment #2 Do $_SERVER[‘SERVER_NAME’] http://csweb.hh.nku.edu/csc301/frank/ch01/s erver.php http://csweb.hh.nku.edu/csc301/frank/ch01/s erver.php
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.