Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

PHP Web Technology Exercises

This repository contains simple PHP programs developed for the Web Technology Laboratory practicals. Each program is written using basic HTML + PHP so that it can be easily executed in XAMPP/WAMP and is suitable for university practical examinations.

Exercises

Ex No Program
1 Row and Column Sum
2 Sum of First N Prime Numbers
3 Email Validation
4 Words to Digits Conversion
5 Execution Delay
6 First Character Colour
7 Multiplication Table
8 Factorial of a Number
9 File Content Reversal
10 Rename .txt Files to .xtx
11 File List Sorted by Last Modification Time
12 Student Mark Sheet (Insert, Update, Delete using MySQL)
13 XML Email Extraction
14 XML DOM Retrieval
15 MySQL Table to XML using DOM

Requirements

  • PHP 7.x or above
  • XAMPP / WAMP / LAMP
  • Web Browser
  • MySQL (Exercises 12 & 15)

Database Setup

For Exercise 12 and Exercise 15, execute the SQL statements provided in sql.txt.

CREATE DATABASE college;
USE college;

Then create the required student table and insert the sample records.

XML Files

email.xml

Used in Exercise 13 to retrieve email addresses.

tree.xml

Used in Exercise 14 to retrieve the value "John" using DOM methods.

student.xml

Generated automatically by Exercise 15 after exporting MySQL data to XML.

How to Run

  1. Install XAMPP or WAMP.
  2. Copy the project folder into the htdocs directory.
  3. Start Apache.
  4. Start MySQL (for Exercises 12 & 15).
  5. Open your browser and visit:
http://localhost/php_exercise/

Run any exercise:

http://localhost/php_exercise/ex1.php

or

http://localhost/php_exercise/ex7.php

Topics Covered

  • PHP Basics
  • HTML Forms
  • Loops & Arrays
  • String Functions
  • File Handling
  • Email Validation
  • XML Processing
  • DOM Parser
  • MySQL Connectivity
  • Database CRUD Operations

Author

Developed for Web Technology Laboratory practical exercises using HTML + PHP.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /