Cameron Spear
  • Blog
  • Contact

php

A collection of 5 posts

apache

Advanced vhosts Configuration

This post assumes you know a little bit about setting up your own Apache configuration and want to configure your vhosts (virtual hosts). When I first set up my vhosts, this is all

  • Cameron Spear
    Cameron Spear
2 min read
apache

MAMP Without the App: Quick Version

[Updated on Jan 14, 2014] This is the quick and dirty version to setting up a MAMP stack on your Mac for local development. This process has been similar for every major OSX

  • Cameron Spear
    Cameron Spear
2 min read
apache

MAMP (Mac Apache MySQL PHP) Without the MAMP App

[Update] (Feb 16, 2014) The process is still much the same for Mavericks, but I made a few tweaks/updates. [Update] (Oct 8, 2012) Updated the guide for Mountain Lion, added a note

  • Cameron Spear
    Cameron Spear
12 min read
mysqli

Get a Single Value from MySQL Database in One Line of PHP

It always bothered me that it takes 17 steps to do a MySQL query (ok, that's slightly exaggerated), even when you only need the value of one field of one row. This may

  • Cameron Spear
    Cameron Spear
1 min read
get

Smart Query Strings

Have you ever had a time when you started out displaying some simple information in a backend, and you wanted to allow simple paging, so you print out the page numbers as links

  • Cameron Spear
    Cameron Spear
1 min read
Cameron Spear © 2025
Latest Posts Ghost