This repository contains the implementation files for Part 1 of the CIS1054 project, focusing on server-side PHP programming fundamentals including HTTP servers, sessions, and request handling.
Academic Year: 2022-2023 (Year 1, Semester 2)
This project was developed by:
This project demonstrates core PHP server-side programming concepts through five progressive exercises:
- HTTP Server Setup Documentation
- Server Date/Time Display
- Session-Based Visit Tracking
- Request Parameter Handling (GET/POST)
- Session Data Retrieval
CIS1054Part1/
βββ Question 2/
β βββ serverdt.php # Server date and time display
βββ Question 3/
β βββ lastvisit.php # First visit tracking with sessions
βββ Question 4/
β βββ processrequest.php # Request parameter processing
βββ Question 5/
β βββ processrequest.php # Enhanced request processing
β βββ readsession.php # Session data retrieval
βββ README.md
- PHP 7.0 or higher
- XAMPP (recommended) or alternative web server (Apache/Nginx) with PHP support
Using XAMPP:
# 1. Place project folder in XAMPP's htdocs directory
# Example: C:\xampp\htdocs\CIS1054Part1
# 2. Start Apache from XAMPP Control Panel
# 3. Access in browser
http://localhost/CIS1054Part1/Question%202/serverdt.php
http://localhost/CIS1054Part1/Question%203/lastvisit.php
# etc.Using PHP Built-in Server:
# Navigate to question directory
cd "CIS1054Part1/Question X"
# Start server
php -S localhost:8000
# Access in browser
http://localhost:8000/filename.phpUsing Apache/Nginx:
- Place files in web server document root
- Access via:
http://localhost/CIS1054Part1/Question X/filename.php
- All scripts have error reporting enabled but display disabled for security
- HTML5 validation attributes used alongside server-side validation
- Session data is temporary and cleared after successful operations
π Academic project - CIS1054 coursework submission.