tailieunhanh - ICT 5 Web Development - Chapter 1.3: Introduction to PHP

ICT 5 Web Development - Chapter : Introduction to PHP What is PHP? Develop and publish PHP scripts, PHP proper syntax, PHP comments, Proper Syntax, Alternative Comment Syntax, Using Comments with PHP Scripts. | Objectives Vietnam and Japan Joint ICT HRD Program To understand what PHP is and how a PHP script o ks ith sc ipt works with a Web Browser and a B o se Web Server To learn what software and components you need to get started with PHP ICT 5 Web Development Lesson 1-3. Introduction to PHP 1- To create and run a simple PHP script Nguyen Thi Thu Trang trangntttrangntt-fit@ 2 Content Content 1. What is PHP? 2. Develop and publish PHP scripts 3. PHP proper syntax 4. PHP comments 1. What is PHP? 2. Develop and publish PHP scripts 3. PHP proper syntax 4. PHP comments 3 4 1 How PHP Pages are Accessed and Interpreted 1. What is PHP? Your PC WebServer (Internet connected) Advantages of Using PHP to enhance (Internet connected) 1. Web Browser Web pages: pages: Please Enter A Phone Number – Easy to use 2. Se n d Req uest for PH P Web Server Software 3. Receive request, find file and read it. Submit Erase – Open source – Multiple platform file 4. Execute PHP statements 7. Web Browser What about JSP & Servlet, ? 5. Send results back. Web Browser Phone Query Results: That is John Doe's Phone Number nR etur 6. R lts esu 5 Content 6 2. Develop and publish PHP script 1. What is PHP? 2. Develop and publish PHP scripts 3. PHP proper syntax 4. PHP comments To develop and p p publish PHP scripts all y p you need is: – A Web server with PHP built into it – A client machine with a basic text editor and Internet connection – FTP or Telnet software 7 8 2 Exploring the Basic PHP Development Process Creating a PHP Script File and Saving It to a Local Disk You can use a number of different editors to create your PHP script files. The basic steps y p you can use to develop p and publish PHP pages are: 1. Create a PHP script file and save it to a local disk. 2. Use FTP to copy the file to the server. 3. Access your file using a browser. – The PHP script starts with a . – Between these tags is a singlePHP print .

TỪ KHÓA LIÊN QUAN