1. Trang chủ
  2. » Cao đẳng - Đại học

Lecture Web technologies and programming – Lecture 22: Introduction to PHP (Part 1) - TRƯỜNG CÁN BỘ QUẢN LÝ GIÁO DỤC THÀNH PHỐ HỒ CHÍ MINH

20 6 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 20
Dung lượng 571,36 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

– Popular server-side scripting technology – Structurally similar to C/C++. – Supports procedural and object-oriented[r]

Trang 1

1

Trang 2

2

Trang 3

Introduction to jQuery

Why use jQuery

Jquery:

Syntax

Selectors

Element Selectors

Class Selectors

Events

Trang 4

DOM

DOM Objects

– Window

– Navigator

– Location

– History

– Document

XML

Components of XML

4

Trang 5

Setting the environment

Overview of PHP

Constants and Variables in PHP

PHP strings

PHP is loose typed language

5

Trang 6

A Web Server

PHP

MySql

Editor

Macromedia Dreamweaver

Adobe Dreamweaver

Notepad / Notepad++ 6

WAMP Server Windows, Apache, MySQL, PHP

Trang 7

Checking WAMP status:

If this Icon is Red or Orange , it means it is

not working properly

Install Microsoft Visual C++ 2010 SP1 Redistributable Package

Studio is installed)

7

WAMP Is Working Properly

Trang 8

Resolving Port Issues (If there is port issue):

Click the icon of WAMP Server

Expand Apache section

Open httpd.conf file in Notepad

Press Ctrl+F and type 80

Wherever you find occurrence of 80 ,

change it to 81

Save the file

Click the icon of WAMP Server and Select

Start All Services

Open Your Browser, type localhost:81 and

it should display homepage of WampServer

8

Trang 9

9

Trang 10

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

PHP is a widely-used scripting language

10

Trang 11

What is a PHP File?

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“

PHP scripts are executed on the server.

11

Trang 12

PHP:

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

Trang 13

PHP:

content

delete, and close files on the server

your database

user-access

13

Trang 14

PHP:

PHP runs on various platforms

(Windows, Linux, Unix, Mac OS X, etc.)

PHP is compatible with almost all

databases

PHP resource: www.php.net

PHP is easy to learn and runs efficiently

on the server side

14

Trang 15

15

Trang 16

• PHP:

A PHP script can be placed anywhere in

the document

A PHP script starts with <?php and ends

with ?>:

• <?php

// PHP code goes here

?>

16

Trang 17

Embedding PHP in HTML code

code

17

Trang 18

PHP code is denoted in the page with

</script>

Trang 19

19

Trang 20

Open a Notepad/Notepad++ or

Dreamweaver File

access files

20

Ngày đăng: 01/04/2021, 16:12

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w