CSC 318 WEB APPLICATION DEVELOPMENT. Introduction to Server Scripting language Client VS Server ...

download CSC 318 WEB APPLICATION DEVELOPMENT.  Introduction to Server Scripting language  Client VS Server  Introduction to PHP  PHP Files and Syntax  Function.

If you can't read please download the document

Transcript of CSC 318 WEB APPLICATION DEVELOPMENT. Introduction to Server Scripting language Client VS Server ...

  • Slide 1
  • CSC 318 WEB APPLICATION DEVELOPMENT
  • Slide 2
  • Introduction to Server Scripting language Client VS Server Introduction to PHP PHP Files and Syntax Function of PHP Why PHP? Implementing PHP How PHPWorks? Requirements for PHP How to write PHP codes
  • Slide 3
  • Students will design and develop webpage using Server-Side scripting for efficient user interaction. Students will establish, configure and maintain an intranet and internet website. Students will understand about PHP, requirement and function of PHP.
  • Slide 4
  • Slide 5
  • In a client-server application there are two kinds of scripts or program: client-side script client side script like Client-JavaScript is run on the client computer using web browser. server-side script server-side script like ASP,PHP, and ColdFusion is run by Web server (such as IIS Apache, etc.)
  • Slide 6
  • Reduce requests needed to be passed to server Access browser Enhance Web pages with DHTML, ActiveX controls, and applets Validate user input Executed on server Generate custom response for client Wide range of programmatic capabilities Access to server-side software that extends server functionality
  • Slide 7
  • Faster to display since workload is distributed to users PC Customizable output personalized experience Cannot retain global data Cannot store data from user into database
  • Slide 8
  • Data from user can be stored into database Web server control users browsing selection The processing is centralized at the server. This will put the burden of processing on the server instead of the client
  • Slide 9
  • PHP To have basic understanding of HTML, CSS and JavaScript PHP stands for Hypertext Preprocessor PHP is a widely-used, open source scripting language PHP scripts are executed on the server PHP is open source software and it is FREE Current version of PHP is Version 6.
  • Slide 10
  • PHP files can contain text, HTML, CSS, JavaScript, and PHP code PHP code are executed on the server, and the result is returned to the browser as plain HTML PHP files have extension *.php In terms of keywords and language syntax, PHP is similar to most high level languages that follow the C style syntax. if conditions, for and while loops, and function returns are similar in syntax to languages such as C, C++, C#, Java and Perl.
  • Slide 11
  • PHP can restrict users to access some pages on your website PHP can add, delete, modify data in your database PHP can create, open, read, write, and close files on the server PHP can generate dynamic page content PHP collect form dataPHP can encrypt data PHP can send and receive cookies With PHP you are not limited to output HTML. You can output images, PDF files, and even Flash movies. You can also output any text, such as XHTML and XML.
  • Slide 12
  • Slide 13
  • To implement PHP, you need a SERVER inside your computer It is FREE! Server is used to test PHP script in your computer. PHP code is interpreted by a web server with a PHP processor module, which generates the resulting web page. PHP commands can be embedded directly into an HTML source document rather than calling an external file to process data
  • Slide 14
  • PHP code is interpreted by a web server with a PHP processor module, which generates the resulting web page: PHP commands can be embedded directly into an HTML source document rather than calling an external file to process data. PHP Scripts Web browser PHP Module Web Server (XAMPP) Send script Return output
  • Slide 15
  • Install a web server Eg. XAMPP Install PHP Eg. phpMyAdmin Install a database, such as MySQL
  • Slide 16
  • Install PHP MyAdmin for database & coding platform http://www.phpmyadmin.net/home_page/index.php http://www.phpmyadmin.net/home_page/index.php Look & try at the Demo first before download the software. Install XAMPP for server http://www.wikihow.com/Install-XAMPP-for-Windows http://www.wikihow.com/Install-XAMPP-for-Windows
  • Slide 17
  • client server URL request HTML PHP Script request HTML
  • Slide 18