Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Systems Development (CSC-215)

Similar presentations


Presentation on theme: "Web Systems Development (CSC-215)"— Presentation transcript:

1 Web Systems Development (CSC-215)
Lecture 2: Introducing PHP Wednesday 31st January 2018

2 Setting up your environment
Server Text editor IDE Remote server

3 Server WAMP MAMP LAMP Windows, Apache, MySQL, and PHP
Mac, Apache, MySQL, and PHP LAMP Linux, Apache, MySQL, and PHP

4 Recommended Server WampServer

5 Text Editor PSPad Sublime Text NotePad++

6 IDE Aptana Studio PHP Designer NetBeans

7 Remote Server http://www.000webhost.com/
Plus FTP client, e.g., FileZilla

8 Installing WAMP Download Run Setup

9 Go with default options

10 Choose the browser you want to use

11

12

13 Troubleshooting installation issues
Install the Visual C redistributable before going ahead with the WampServer install

14 Testing the WAMP Installation
If your WAMP icon does not turn green, try switching Skype off and restarting the server

15

16 Incorporating PHP Within HTML
Your document should have a .php extension

17

18

19

20 View Source

21 Basic syntax overview

22 Comments

23 End of statement semi-colon

24 $ at start of variable names

25 String Variables

26

27

28

29 Numeric Variables

30 Arrays

31 Multi-dimensional arrays

32 Variable naming rules

33 Arithmetic Operators

34 Assignment Operators

35 Comparison Operators

36 Logical Operators

37 String Concatenation

38 String Types Single quote evaluates string as a literal.

39

40 String Types Double quote enables evaluation of any variables included inside.

41

42 Escape Character \t, \n and \r can also be used

43 Multiple Line Commands

44 Multiple Line Commands

45 Multiple Line Commands

46 Multiple Line Commands

47 Variable Typing Loosely typed
Variables need not be declared before they are used

48 Automatic Conversion

49 Automatic Conversion

50 Constants

51 Predefined Constants

52 print Can be used within complex expressions unlike echo

53 Lecture content adapted from chapters 2 & 3 of Learning PHP, MySQL, JavaScript, CSS & HTML5, 3rd Edition, by Robin Nixon.


Download ppt "Web Systems Development (CSC-215)"

Similar presentations


Ads by Google