JNTU

JNTU B.Tech IV PHP PROGRAMMING Previous Question Paper (July/August - 2022 - R16)

B.Tech | IV | II | R16 | July/August - 2022

Answer PaperPaper Code: 138GQMaximum Marks: 75Time: 3 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Write down the features of Apache, PHP and MySQL.

6 marks

Answer

Apache is a powerful, open-source HTTP server known for its reliability, modular architecture, and cross-platform compatibility. It supports virtual hosting, SSL/TLS for security, and can be extended through various modules to handle different content types.

PHP is a server-side scripting language designed for web development. Key features include its ability to embed directly into HTML, broad database support, platform independence, and a vast library of built-in functions for session management, file handling, and form processing.

MySQL is a relational database management system (RDBMS) that uses Structured Query Language. It is characterized by high speed, scalability, and robust security features. It supports multi-user access, transactional integrity, and is highly optimized for web-based applications.

b

Discuss the detailed instructions in configuring Apache and PHP installation.

9 marks

Answer

Configuring the Apache and PHP environment typically involves the following steps:

  1. Installation: Install the Apache HTTP Server and the PHP binary package. On Windows, this often involves using an integrated stack like XAMPP or WAMP, while on Linux, packages are installed via managers like apt or yum.
  2. Apache Configuration: Locate the httpd.conf file. To enable PHP, you must load the PHP module by adding a line similar to LoadModule php_module modules/libphp.so.
  3. Handler Configuration: Add the AddType directive to instruct Apache to process files with the .php extension using the PHP interpreter: AddType application/x-httpd-php .php.
  4. Directory Index: Ensure index.php is included in the DirectoryIndex directive so that Apache serves PHP files by default when a directory is accessed.
  5. PHP Configuration: Modify the php.ini file to set environment variables such as display_errors, upload_max_filesize, and extension_dir to match the application requirements.
  6. Restarting Services: After saving configuration changes, the Apache service must be restarted for the new settings to take effect.
  7. Verification: Create a file named info.php containing <?php phpinfo(); ?> in the server's root directory and access it via a browser to verify the installation and configuration details.
215 marks
a

Discuss some pitfalls commonly seen with the practice of inserting HTML inside PHP.

5 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate passing the variables from page to page through an URL and with sessions.

10 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

How to create and call user-defined functions in PHP scripts? Illustrate with an example.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explore various functions for manipulating strings in PHP scripts with examples.

8 marks

Answer

Sign in to view the complete answer paper.

4

List and explain various variable functions and Date functions available in PHP with syntax and example.

15 marks

Answer

Sign in to view the complete answer paper.

5

Build a web application by creating FORMs using various buttons, text boxes and other elements of your choice. Write the justifications of each element in the form creation.

15 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

How to test the existence of a file and open it for doing read operations using PHP functions? Illustrate them with an example PHP program.

8 marks

Answer

Sign in to view the complete answer paper.

b

Give the syntax of flock( ) function and explain it need in PHP.

7 marks

Answer

Sign in to view the complete answer paper.

7

Explain the detailed steps in allowing users to create an image table and upload images using the support of GD library.

15 marks

Answer

Sign in to view the complete answer paper.

8

Summarize various commands to work with and process database tables in MySQL.

15 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of PHP PROGRAMMING from JNTU for B.Tech CEE IV II, July/August - 2022, R16.

For the solved question paper with answers, switch to the Answer Paper tab.

Loading Question Papers

Fetching data from database...