Download presentation
Presentation is loading. Please wait.
Published byJulius Colin Walton Modified over 7 years ago
1
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT
2
Software needed in developing E-commerce Application
SERVER WAMPSERVER SCRIPTING LANGUAGE PHP DATABASE MANAGEMENT SYSTEM MySQL TEXT EDITOR Notepad++ WEB USER INTERFACE DESIGNER Microsoft Expression Web ITBS2203 E-Commerce for IT
3
WAMPSERVER ITBS2203 E-Commerce for IT
4
What is PHP? Recursive acronym for PHP: Hypertext Preprocessor
Open Source general purpose scripting language Server-side scripting language Cross-platform Embedded into HTML Syntax almost similar to C, C++, Java Pervasive tools for web applications ITBS2203 E-Commerce for IT
5
Features of PHP PHP is excellent for creating dynamic Web sites based on database content or different characteristics of browsers. build templates to ease site maintenance create graphics on the fly serve different content to users based on their browser, conduct online surveys connect databases like Oracle, Informix or MySQL to the Web And many others ITBS2203 E-Commerce for IT
6
Why Choose PHP? Free to download and use Open source software
Easier to learn PHP5 now offers many object orientated development concepts Runs on Apache server which is open source. Has multiple platform support (Windows, Linux, Unix, etc.). You can develop in Windows and serve on a Unix platform. Has a huge support to many databases as it is open source ITBS2203 E-Commerce for IT
7
Where to download PHP http://php.net http://php.net/
ITBS2203 E-Commerce for IT
8
What is MySQL? MySQL is a database server (relational Database Management System). It is the world's most popular open source database and it is free to download and use. ITBS2203 E-Commerce for IT
9
Where to download MySQL
ITBS2203 E-Commerce for IT
10
PHP Basics and Syntax PHP file is a text file and can be created by any text editor. Open Notepad++ PHP file may contain HTML tags and/or PHP statements. PHP file must be saved in the correct web directory (folder) of the web server called the document root(c:/wamp/www). PHP files that includes PHP statements must be saved with the extension *.php ITBS2203 E-Commerce for IT
11
PHP Basics and Syntax All PHP statements must be enclosed within opening and closing tags. <?php echo "<h1>Welcome to SCT.</h1>"; ?> ITBS2203 E-Commerce for IT
12
PHP Basics and Syntax PHP is case sensitive,
$name is different from $Name. Comments can be made within the script, and are enclosed within "/*" and "*/" brackets. For example: /* Comments can also be mixed with code, see? */ $e = 5; /* This works just fine. */ ITBS2203 E-Commerce for IT
13
PHP Basics and Syntax Output statement must be enclosed in double quotations (") or single quotation (’), and led by the echo or print statement. Example : echo “Hello world”; echo ‘Hello world’; PHP statement must end with semi-colon (;). ITBS2203 E-Commerce for IT
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.