tailieunhanh - Lecture Introduction to web engineering - Lec 24: Introduction to PHP (Part 1)

After studying this chapter you will be able to understand: Setting the environment, overview of PHP, constants and variables in PHP, basic rules of PHP syntax, writing and executing PHP code, writing output to the browser, integrating HTML with PHP,. | Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1 Setting the environment Overview of PHP Constants and Variables in PHP Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 2 2 Department of Computer Science, CIIT Islamabad. A web server PHP MySql Editor Macromedia Dreamweaver /Adobe Dreamweaver Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 3 WAMP Server Checking WAMP status: is missing Install Microsoft Visual C++ 2010 SP1 Redistributable Package Port conflict with skype Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 4 WAMP is working properly PHP: Hypertext Preprocessor Originally called “Personal Home Page Tools” Used to create dynamic web pages Popular server-side scripting technology Open-source Anyone may view, modify and redistribute source code Platform independent Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, | Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1 Setting the environment Overview of PHP Constants and Variables in PHP Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 2 2 Department of Computer Science, CIIT Islamabad. A web server PHP MySql Editor Macromedia Dreamweaver /Adobe Dreamweaver Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 3 WAMP Server Checking WAMP status: is missing Install Microsoft Visual C++ 2010 SP1 Redistributable Package Port conflict with skype Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 4 WAMP is working properly PHP: Hypertext Preprocessor Originally called “Personal Home Page Tools” Used to create dynamic web pages Popular server-side scripting technology Open-source Anyone may view, modify and redistribute source code Platform independent Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 5 Interpreted language, scripts are parsed at run-time rather than compiled beforehand Compatible with many popular databases Popular server-side scripting technology Structurally similar to C/C++ Supports procedural and object-oriented paradigm Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 6 Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 7 Embedding PHP in HTML code HTML can also be written inside the PHP code PHP can also be written as a standalone program with no HTML at all Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 8 PHP code is denoted in the page with opening and closing tags, as follows: PHP statements end with a semicolon Comments can be added as // for one line comment /* and */ for multiple lines comment Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 9 Open a notepad or dreamweaver file Write

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.