Download - Shubhrat mishra working with php 2
![Page 1: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/1.jpg)
Shubhrat MishraMCA (V-Semester)Srmscet, Bareilly
![Page 2: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/2.jpg)
Installing PHP using WAMP Server
![Page 3: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/3.jpg)
Installing PHP using WAMP Server -2
![Page 4: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/4.jpg)
Installing PHP using WAMP Server-3Installing PHP using WAMP Server-3
![Page 5: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/5.jpg)
Installing PHP using WAMP Server-4Installing PHP using WAMP Server-4
![Page 6: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/6.jpg)
Installing PHP using WAMP Server-5Installing PHP using WAMP Server-5
![Page 7: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/7.jpg)
Starting & Stopping iisadmin service
![Page 8: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/8.jpg)
Starting WAMP Server
![Page 9: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/9.jpg)
Example 1
![Page 10: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/10.jpg)
![Page 11: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/11.jpg)
Example 2
![Page 12: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/12.jpg)
Example 3– global Variable
![Page 13: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/13.jpg)
Example 4 – static Variable
![Page 14: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/14.jpg)
Example 5 – Reference Variable
![Page 15: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/15.jpg)
Example 6 – Variables Variable
![Page 16: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/16.jpg)
![Page 17: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/17.jpg)
Example 7 – if else
![Page 18: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/18.jpg)
Example 8 - switch
![Page 19: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/19.jpg)
![Page 20: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/20.jpg)
Example 9
![Page 21: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/21.jpg)
Example 10 – foreach Loop
![Page 22: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/22.jpg)
![Page 23: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/23.jpg)
Example 11
![Page 24: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/24.jpg)
Example 12
![Page 25: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/25.jpg)
Example 13 – Escape Character (\)
![Page 26: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/26.jpg)
Example 14 – printf(), sprintf() and getType()
![Page 27: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/27.jpg)
![Page 28: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/28.jpg)
Example 15 – Numeric Array
![Page 29: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/29.jpg)
Example 16Associative
Array
![Page 30: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/30.jpg)
Example 17 – 2 Dimensional Array
![Page 31: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/31.jpg)
Example 18 – Multidimensional Array
![Page 32: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/32.jpg)
![Page 33: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/33.jpg)
Example 19
![Page 34: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/34.jpg)
Example 20
![Page 35: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/35.jpg)
Example 21
![Page 36: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/36.jpg)
Example 22 – Accessing Global Values through Functions
![Page 37: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/37.jpg)
Example 23 – Recursive Function
![Page 38: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/38.jpg)
Example 24 – Anonymous Function
![Page 39: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/39.jpg)
![Page 40: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/40.jpg)
Example 25 – Mathematical Functions
![Page 41: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/41.jpg)
Example 26 – Mathematical Functions
![Page 42: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/42.jpg)
Example 27 – Mathematical Functions
![Page 43: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/43.jpg)
Example 28 – String Functions
![Page 44: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/44.jpg)
Example 29 – String Functions
![Page 45: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/45.jpg)
Example 30 – String Functions
![Page 46: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/46.jpg)
Example 31 – String Functions
![Page 47: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/47.jpg)
Working with Forms
![Page 48: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/48.jpg)
Example 32 – GET Method
![Page 49: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/49.jpg)
Example 33 – POST Method
![Page 50: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/50.jpg)
![Page 51: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/51.jpg)
![Page 52: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/52.jpg)
Uploading a File
![Page 53: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/53.jpg)
upload.html
![Page 54: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/54.jpg)
upload.php
![Page 55: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/55.jpg)
![Page 56: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/56.jpg)
Cookies&
Sessions
![Page 57: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/57.jpg)
Example - Hard Coded Cookie
![Page 58: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/58.jpg)
Example - User Defined Cookie
![Page 59: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/59.jpg)
Example - Accessing Session on Same Page
![Page 60: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/60.jpg)
Example - Accessing Session on Different Page
![Page 61: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/61.jpg)
Mailing
![Page 62: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/62.jpg)
![Page 63: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/63.jpg)
Errors &
Exceptions
![Page 64: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/64.jpg)
Example – Using die()
![Page 65: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/65.jpg)
Example – Using trigger_error()
![Page 66: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/66.jpg)
Example – Exception Handling using try-catch Blocks
![Page 67: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/67.jpg)
DatabaseConnectivity
![Page 68: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/68.jpg)
Example – Connectivity using DSN & ODBC
![Page 69: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/69.jpg)
![Page 70: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/70.jpg)
![Page 71: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/71.jpg)
Creating DSN
![Page 72: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/72.jpg)
![Page 73: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/73.jpg)
![Page 74: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/74.jpg)
Example – Connectivity using MySQL & phpMyAdmin
![Page 75: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/75.jpg)
![Page 76: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/76.jpg)
![Page 77: Shubhrat mishra working with php 2](https://reader035.vdocuments.us/reader035/viewer/2022062900/58e521af1a28ab624e8b5ebf/html5/thumbnails/77.jpg)
View of Table from Show Records.php, in localhost
View of Table from phpMyAdmin