PHP supports many databases (MySQL, Informix,. Oracle ... echo $str." I don
't know!"; ?> ... Some examples of PHP and MySQL being used together are:.
PHP Development - Introduction
Php Hypertext Processor • PHP stands for PHP: Hypertext Preprocessor • PHP is a server-side scripting language, like ASP • PHP scripts are executed on the server • PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.) • PHP is an open source software
Php Hypertext Processor
Php Hypertext Processor
Php Hypertext Processor
Php Hypertext Processor
Taken from Udemy.com
Php Hypertext Processor
Taken from Udemy.com
Php Hypertext Processor
• 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“ (most common), ".php3", or ".phtml"
Php Scripts • Php script starts with • Php script can be placed anywhere in document • File ends in .php • Each instruction must end with a semicolon ; • Semicolon acts as a separator between instructions
Hello World
Hello World Hello World!
Comments • Comments help make code more readable/understandable • Beneficial for third party to understand code • Ignored by compiler • Use // to create a single line comment
• Use /* ….. */ to create a multiple line comment
Comments
Outputting Strings • The echo() function outputs one or more strings
• The print() function can also be used • echo() is faster than print() This text spans multiple lines.