50 likes | 180 Views
Pre -Module PHP Introduction. BTM 395: Internet Programming. PHP. PHP: Hypertext Preprocessor Originally called “Personal Home Page Tools” Popular server-side scripting technology Open-source Anyone may view, modify and redistribute source code Supported freely by community
E N D
Pre-Module PHP Introduction BTM 395: Internet Programming
PHP • PHP: Hypertext Preprocessor • Originally called “Personal Home Page Tools” • Popular server-side scripting technology • Open-source • Anyone may view, modify and redistribute source code • Supported freely by community • Platform independent
Basic application • Filenames end with .php by convention • Server can be set to recognize other extensions (even .html) • Scripting delimiters • <?php … ?> • Or just <? … ?>, but this form not recommended • Must enclose all script code • Any HTML code outside the <?php … ?> tags will be processed as HTML • Variables preceded by $ symbol • Case-sensitive • Permits easily embedding variables in strings
Online PHP playgrounds • http://writecodeonline.com/php/ • http://codepad.org/
Sources • Some content modified fromInternet & World Wide Web: How to Program. By Deitel, Deitel, and Goldberg. Published by Prentice Hall. ISBN 0-13-145091-3