Skip to content

ThVariableYT/Web-Programming-Practicals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Programming Practicals

All the practicals done in Web Programming sessions of FYIT Semester 2

Web-Programming Practicals

php-programming-language

All the practicals done in Web Programming sessions of FYIT Semester 2

🧰 Repository Contents

This repository contains several PHP scripts and exercises covering fundamental web-programming topics such as conditionals, loops, arrays, and simple output formatting.
Examples include:

  • Odd-Even.php — determines if a number is odd or even
  • Greater Than.php — compares two values
  • Palindrom.php — checks whether a string/number is a palindrome
  • Pyramid.php, Pyramid 2.php — prints pyramid patterns using loops
  • …and more.

(See the file listing for the full set of scripts.)

📋 Badges

PHP version
License
Repo size

👨‍💻 Getting Started

Prerequisites

  • You need PHP installed (version 7.4+ is recommended)
  • A local web-server environment such as XAMPP, MAMP, WampServer or built-in PHP server
  • Optionally, a code editor like Visual Studio Code

Download / Clone the Repository

git clone https://github.com/ThVariableYT/Web-Programming-Practicals.git
cd Web-Programming-Practicals

Setup & Run in a Local PHP Server

Option A: Using XAMPP / WampServer / MAMP

  • Install and launch your environment (Apache + PHP).

  • To install wampserver, click here

  • Copy (or move) the cloned folder Web-Programming-Practicals/ into your web-server’s document root (e.g., www/ for WampServer).

  • If using WampServer64 on Windows: your folder might be "D:\wamp64\www\FYIT_4".

  • After setting up and installing wampserver64 (make sure you install wampserver64 on the root of your drive, for eg. C:/ or D:/), check if all the services are started and running.

  • If the services are running, click on the system tray icon and left click on the wampserver icon.

  • Click on the "localhost" option. A new browser window should open.

  • Scroll down and navigate to your folder which you created in the "www" folder.

  • Click on any file (e.g., Odd-Even.php) to see its output.

Option B: Using PHP’s built-in server

  • Open a terminal inside the cloned repository folder.

Run:

php -S localhost:8080

📝 How to Use the Scripts

  • Browse the folder structure in your editor.

  • Each PHP file is designed to be self-contained and runnable via a web-browser.

  • Open the script in your browser and interact if required (input prompts, form fields may apply).

  • Modify/extend the code to deepen your learning (change loop conditions, print styles, etc.).

📂 Folder Structure

Web-Programming-Practicals/
├── Odd-Even.php
├── Greater Than.php
├── Palindrom.php
├── Pyramid.php
├── Pyramid 2.php
├── .gitattributes
├── README.md
└── … other scripts …

🤝 Contributing

  • Thanks for considering contributions!

  • Fork the repository on GitHub.

  • Create a feature branch:

git checkout -b feature-yourName
  • Make your changes and commit:
git commit -m "Add new exercise: factorial pattern"
  • Push to your branch and open a Pull Request.

  • Ensure code is clear, commented, and functional.

📄 License

  • This project is licensed under the MIT License — see the LICENSE file for details.

🙋 Contact

Maintained by **ThVariableYT GitHub: https://github.com/ThVariableYT

Happy coding and enjoy exploring PHP web-programming practicals!

About

All the practicals done in Web Programming sessions of FYIT Semester 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages