After upgrading you MacOS, you will need to reconfigure your MAMP server. Fortunately, it’s pretty easy to do. However, sometime hiccups happen. Here’s a quick guide to follow that will walk you through the things to check. 1. enable php.ini cd /etc move default to php.ini sudo cp php.ini-5.2-previous php.ini If you need to resetup…Read More Migrating PHP and Apache to latest Mac OS after update
This is the best guide on PHP symbols I’ve every seen. If only something like this existed when I was first learning to code. Reference: & =& &= && % !! @ ?: : :: \ -> => ^ >> <<< = == === !== != <> | || ~ + += ++ .= . ,…Read More What does the symbol “&” “&&” “||” “::” “%” “!!” “**” mean in PHP?
This is a quick tutorial that will walk you through turning display errors on in your php.ini file.Read More How to turn display_errors to on in php.ini file
Welcome to part 4 of the MAMP tutorial. In this post we will go over setting up php.ini on your Mac’s localhost.Read More How to enable and setup php.ini on a Mac with OSX 10.8 + (MAMP Part 4)
This tutorial will show you how to set up an Apache server to run PHP on a mac OSX 10.8+ with Mountain Lion or later operating system. Tested on OS X Mountain Lion, OS X Mavericks, OS X Yosemite 10.10+, macOS El Capitan, macOS Catalina Last updated Aug 7, 2020 Updated for macOS CatalinaRead More How to install Apache and PHP on a Mac (MAMP Part 1)
I wanted to improve my Git workflow, so I went about using GitHub’s Service Hooks to set up a web hook to my development server. The idea being that I would have GitHub ping my server every time I or anyone else pushes to the master GitHub repository. The idea was pretty simple. I would…Read More Solved: Running git pull from a php script causing an error?
I remember when I first came across the mysterious double-colon (::), also known as the Scope Resolution Operator. I was experimenting with a php library I hadn’t written, but was asked to extend, and at the time I had no idea what classes were, how they worked, or how they helped. To try and figure…Read More The Scope Resolution Operator (::) explained
What is a Class A class is also known as an object. To better understand the concept of an object, think of it as you would a material object like a bear. Let’s pretend that we are going to have to make a bear using a class. To start you would give the animal a…Read More PHP Classes briefly explained
Today I had to set the PHP script execution time directly from within the php file. Here’s what I did. Add the following code to your file. You can change the seconds to what you need. It is important to be careful using this on a live server. If you allow a script to run…Read More Increase PHP Script Execution Time Limit Using ini_set()
Recently our servers went down. The error we were getting was “Too many connections”. This meant that we needed to increase the limit on the number of available connections within our mysql config file. The setting is called max_connections Before you go upping the number of max user connections there are two things to consider.…Read More What to do when you have the error “too many connections”