Skip to content

Instantly share code, notes, and snippets.

@neight-allen
Last active September 23, 2016 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neight-allen/68d7a0481a19da39da1be6c9921cbe03 to your computer and use it in GitHub Desktop.
Save neight-allen/68d7a0481a19da39da1be6c9921cbe03 to your computer and use it in GitHub Desktop.
What is PHP?

What is LAMP?

I Love Lamp

Getting up and running

https://www.mamp.info/en/

  1. Install MAMP
  2. Run MAMP from Applications
  3. Chose MAMP instead of MAMP Pro
  4. Start the servers
  5. Put some files in /Applications/MAMP/htdocs/
  6. Enjoy

Some things to know about PHP

  • It has templating built in
  • All the variables start with $. Because reasons.
  • Semicolons are used and REQUIRED
  • Routing is done through the file structure, but there are ways around that
  • Like Javascript, classes were added as an afterthought

Resources to get started

Some things to do in PHP

Exercises

Basic Programming

  • Fizz Buzz
  • Build a linked list

Basic web programming

  • Build a page with a header, main and footer in a separate files
  • Build a login page, even if the username and password is hard coded
  • Build a sign up page
  • Send an email from a form

External data sources

  • Load data from a csv, and put it in a table. Maybe add pagination.
  • Display data from your github profile
  • Load a MYSQL database with headcount or black thursday data
    • phpMyadmin comes with MAMP
    • Sequel Pro is pretty cool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment