https://github.com/kavin1421/samplephpcloud
Sample PHP Website for Cloud Computing Assignment
https://github.com/kavin1421/samplephpcloud
000webhost cloud-computing php
Last synced: 15 days ago
JSON representation
Sample PHP Website for Cloud Computing Assignment
- Host: GitHub
- URL: https://github.com/kavin1421/samplephpcloud
- Owner: Kavin1421
- Created: 2023-10-31T01:48:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T03:48:01.000Z (over 2 years ago)
- Last Synced: 2024-01-27T18:01:15.437Z (over 2 years ago)
- Topics: 000webhost, cloud-computing, php
- Language: HTML
- Homepage: https://democloudbykavin.000webhostapp.com/
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Simple PHP Website
I put together this project while introducing a friend of mine to PHP. I decided to clean it up a bit and put it on Github so anyone new to PHP can have a taste of a **very simple and minimal** website built with PHP.
This project is meant for beginners. I've intentionally kept it minimal while introducing some [separation of concerns](https://en.wikipedia.org/wiki/Separation_of_concerns).
## Installation
There are only two steps to run this website:
1. Download the project to the desired directory on your computer
2. Run `php -S localhost:8080` on your terminal. Navigate to http://localhost:8080 to see the site.
By defaut, the page URLs use query strings (*?page=about*). You need to have Apache installed for pretly URLs (*/about*) to work. To activate pretty urls, update config value of `pretty_uri` to `true`.
## Concepts
The project covers these programming concepts:
* Variables
* Arrays
* Functions
* Pretty links *(/about) with fallback to query string (?page=about)*
* Basic example of separation of concerns *(functionality, template, content)*
If you have any questions or recommendations for the project, please [create an issue](https://github.com/banago/simple-php-website/issues/new) or hit me up on Twitter [@banago](https://twitter.com/banago).
> To help you take your knowledge of PHP to the next level, I've personally hunt down what I deem to be the best introductory course on PHP out there. I wish this course existed when I started learing PHP. Check it out on Udemy: [PHP for Beginners Course](https://click.linksynergy.com/link?id=jTy10g8O/M8&offerid=507388.1576856&type=2&murl=https%3A%2F%2Fwww.udemy.com%2Fphp-for-beginners-%2F).