Skip to content
View SharanyaGV's full-sized avatar

Block or report SharanyaGV

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
SharanyaGV/readme.md

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.

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 or hit me up on Twitter @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.

License

MIT

Popular repositories Loading

  1. SharanyaGV SharanyaGV Public

    Config files for my GitHub profile.

    HTML

  2. MyProject MyProject Public

  3. firstproject firstproject Public

  4. SonarQubeCoverageJava SonarQubeCoverageJava Public

    Forked from anujdevopslearn/SonarQubeCoverageJava

    Java

  5. Multibranch Multibranch Public

  6. Inventory-Management-System-Spring-Boot Inventory-Management-System-Spring-Boot Public

    Forked from wishwaprabodha/InventoryManagementSystem-SpringBoot

    Spring Rest

    Java