PHP

BCA Php notes pdf of Panjab University pu semester 5 year

PHP in BCA is an important subject in which students learn about PHP Language in their syllabus.

Click Here to Buy PDF

Join Our WhatsApp Channel for ALL Subjects PDF Notes

 

📄1.)  SECTION – A :

Explain difference between Static Website and Dynamic Websites | Explain Operators. Explain different types of Operators used in PHP | Arithmetic Operator | Assignment Operator | Logical Operator | Bitwise Operator | Ternary / Conditional Operator | Relational Operator | Incremental / Decrement Operator | Comparison Operator | String Operator | Array Operator | Difference between Client Side Scripting and Server Side Scripting. | Explain syntax and various decision making constructs available in PHP with example | If Statement | If-Else Statement | If -Else If-Else Statement | Switch Statement / Case Control Structure | Explain various types of Looping Statements used in PHP with the help of Syntax and Examples. For Loop | While Loop | Do While Loop | For Each Loop | Explain the use of File Inclusion Statements used in PHP | Include Function | Require Function |

 

📄2.) SECTION – B :

What is function in PHP. Explain how functions are created and invoked in PHP | Explain Recursion in PHP and its use in PHP | Write a suitable program example | Divide and Conquer Technique | Solves Complex Problems |Tree/Graph Traversal | Mathematical Calculation | Explain Strings in PHP. How can you Compare and Search Strings in PHP. How was Strings used in PHP . Explain any 3 String . Write a PHP Program to find the number of Characters in the String | Single Quoted Strings | Double Quoted Strings | Heredox Syntax | Nowdoc Syntax | Compare Strings in PHP- Strcmp() function, Strcasecmp() functions Searching Strings in PHP- Strpos() function , stripos() function , strrpos() function , strripos () function Length of String / Number of Characters in String – Strlen() function Finding number of words in a String – Str_word_count() function String Reverse – Strrev() function Explain the syntax and use of For Each Loop in accessing Arrays elements in PHP | Differentiate between Numeric And Associative Arrays with example .Write a PHP script to print items stored in an array using For Each Loop. Discuss the functions for Inspecting Arrays. Indexed Array Numeric Array , Associative Array , For Each Loop | Assessing elements stored in an Array using For Each Loop.| Accessing both Key and Value of an Associative Array using For Each Loop

📄3.) SECTION – C :

Write a PHP script to accept or insert Records of fields – student id student name & student age from the user through HTML form, Store it in a database table named as “Student” and Display those records in the Tabular form PHP connecting to a Database Server and Creating a MYSQL Database | Creating a Table and Inserting Records from FORM | Insert Records Into Table From Form | Display and Fetching Records What is the role of Get and Post methods in a HTML form | Get Method | Post Method | What is database how PHP code connected to database Explain the purpose, use and scope of Super Global Variables with example. | Write a short note on Super Global Arrays | Super Global Variables and Super Global Arrays| $_SERVER $_GET $_POST $_REQUEST

 

📄4.) SECTION – D :

Explain various File Opening, Reading, Writing , Closing functions used in PHP with program.| Explain the file permissions allowed in PHP. explain how can they be changed Common File Permissions – Read (r) Write (w) Execute (x) Changing file Permissions – Opening a file (fopen()), Closing a file (fclose()) , Reading from a file (fgets()), fgetc() , Writing into a file (fwrite()) overwriting appending