0% found this document useful (0 votes)
8 views1 page

Assignment 3

This document outlines an assignment for a Web Development course using PHP, focusing on sessions and cookies. It includes a list of tasks that students must complete, such as writing output, managing variables, and manipulating strings, as well as working with cookies and sessions. Additionally, it provides references to textbooks and other resources for further study.

Uploaded by

naughtybell
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Assignment 3

This document outlines an assignment for a Web Development course using PHP, focusing on sessions and cookies. It includes a list of tasks that students must complete, such as writing output, managing variables, and manipulating strings, as well as working with cookies and sessions. Additionally, it provides references to textbooks and other resources for further study.

Uploaded by

naughtybell
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Format VI : Assignment 3

SEMESTER : V ( ODD SEMESTER)


SUBJECT : WEB DEV. USING PHP

Topics – PHP SESSIONS AND COOKIES

Instructions: Write answers to the following questions in brief in your own handwriting.

Perform following tasks in PHP :

1. Write text to the output using PHP


2. Add comments in PHP
3. Create different variables
4. Test global scope (variable outside function)
5. Test local scope (variable inside function)
6. Use the global keyword to access a global variable from within a function
7. Use the $GLOBALS[] array to access a global variable from within a function
8. Use the static keyword to let a local variable not be deleted after execution of function
9. Get the length of a string
10. Count the number of words in a string
11. Reverse a string
12. Search for a specific text within a string
13. Replace text within a string
14. Create a function
a. Function with one argument
b. Function with two arguments
15. Create and retrieve a cookie
16. Modify a cookie value
17. Delete a cookie
18. Check if cookies are enabled
19. Start a session
20. Get session variable values
21. Get all session variable values
22. Modify a session variable
23. Destroy a session

References:
Text Books:

T1 Jon Duckett,HTML & CSS: design and build websites,1,John Wiley & Sons,2011
T4 W. Jason Gilmore,Beginning PHP and MySQL: From Novice to Profession,4,Apress,2010

Reference Books :
R1 Thomas Powell,HTML & CSS: The Complete Reference,5,TMH,2010
R2 Steven Holzner,PHP: The Complete Reference,1,TMH,2008

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy