100 likes | 123 Views
This textbook explores the basics of PHP in detail. It covers essential concepts and scripts, including variables and predefined elements. Get started with PHP coding for dynamic web development using this guide.
E N D
Chapter 1 Introduction to PHP Part 1
Textbook’s Code • http://www.larryullman.com/ • DOWNLOADS • PHP and MySQL for Dynamic Web Sites, 5th Edition • Complete Set of Scripts and Commands
second.php • Script 1.3 on page 7 • http://csweb.hh.nku.edu/csc301/frank/ch01/second.php • ch01\second.php
echo echo ‘Hello, world!’; echo “What’s new?”; echo “She said \”How are you?\””;
comments.php • Script 1.4 on page 11 • http://csweb.hh.nku.edu/csc301/frank/ch01/comments.php • ch01\comments.php
predefined.php • Script 1.5 on page 15 • http://csweb.hh.nku.edu/csc301/frank/ch01/predefined.php • ch01\predefined.php
variables • Starts with a $ • $amount
Variable types • Boolean (TRUE or FALSE) • Integer • Floating point • String • Resource (used with databases) • NULL (has no value)
Assignment #2 • Do $_SERVER[‘SERVER_NAME’] • http://csweb.hh.nku.edu/csc301/frank/server.php