0% found this document useful (0 votes)
244 views3 pages

PHP Concepts and Code Examples

This document contains a list of 51 questions covering various topics in PHP including: 1. MySQL functions like mysql_free_result() and mysql_close() 2. Variables in PHP like $name and $$name 3. Control structures including the ternary operator, include() vs require(), and flow control statements like exit() and return(). 4. Arrays, cookies, sessions, and PHP data types. 5. Forms and form elements, MySQL queries, and PHP functions. The questions cover both basic and more advanced topics in PHP like database connectivity, uploading files, PHP configurations files, and operators.

Uploaded by

PRATIKKUMAR
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)
244 views3 pages

PHP Concepts and Code Examples

This document contains a list of 51 questions covering various topics in PHP including: 1. MySQL functions like mysql_free_result() and mysql_close() 2. Variables in PHP like $name and $$name 3. Control structures including the ternary operator, include() vs require(), and flow control statements like exit() and return(). 4. Arrays, cookies, sessions, and PHP data types. 5. Forms and form elements, MySQL queries, and PHP functions. The questions cover both basic and more advanced topics in PHP like database connectivity, uploading files, PHP configurations files, and operators.

Uploaded by

PRATIKKUMAR
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

Short Questions

1. Explain mysql_free_result() and mysql_close().


2. Differentiate between $name and $$name.
3. Explain ternary operator with example.
4. Explain an associative array.
5. Explain POST method.
6. Differentiate between include() and require().
7. Explain persistent cookie.
8. What are default session time and path?
9. State when php is more suitable then its companion technology.
[Link] to delete session variables?
[Link] between static and global variable.
[Link] REQUEST method.
[Link] is auto_append file in [Link]? Explain with example.
[Link] is echo and print? What is difference between these?
[Link] are different ways to retrieve data in the result set of mysql
using php?
[Link] order by clause.
[Link] for and for each.
[Link] exit and return.
[Link] different ways of commenting code in php with example.
[Link] is difference between single quote(‘) and double quote(“) in
php?
[Link] is use of header().
[Link] == and ===
[Link] difference between isset() and unset().
[Link] order by clause with example.
[Link] features of php.
[Link] querystring with example.
[Link] do you mean by Add-Ons.
Long Questions
1. Differentiate between mysql_fetch_array() and mysql_fetch_assoc().
2. Explain date functions in php.
3. Explain steps of database connectivity of php and mysql.
4. Explain request-response cycle in web communication.
5. Explain the use of cookie. When cookie is expired? Explain how it is created
and retrieved?
6. Discuss different data types in php.
7. Discuss different types of tables in php.
8. Write a script which shows interaction among php and mysql.
9. Explain how to use mysql_replace to insert or update data.
[Link] with an example how a file can be uploaded in PHP.
[Link] [Link] file in detail
[Link] [Link] file in detail.
[Link] different types of operators available in php.
[Link] user defined functions in php.
[Link] arrays are created in php? Explain any 3 sorting functions of php.
[Link] any 7 math functions in php.
[Link] form elements and input elements.
[Link] a note on control structures in php.
[Link] to start,modify and unregister session variables in php.
[Link] conditional statements of php.
[Link] following functions with syntax
a. Die()
b. Print()
c. Assort()
d. Count()
e. Strstr()
f. Isset()
g. Rand()
h. Fmod()
i. Floor()
j. Checkdate()
k. Current()
l. Ord()
m. Stristr()
n. Each()
o. Strrpos()
p. List()
q. Chr()
r. Str_replace()
s. In_array()

You might also like