I’ve got to admit – I’m old school! Then we moved to subversion, woah, this is cool! Then SSH to the relevant webserver, cd to the right dir, and calling svn up, that’s progress! Then we introduced load-balancing and multiple app servers, so we wrote a bash script we can call from our mac’s that […]
In this post I’ll post all of the steps to set up your Mac for PHP web development. We will be setting up OSX Big Sur with Valet, PHP & MySQL. I’ll be using the follow tools: OSX Big Sur 11.2.3 iTerm (or osx terminal) Homebrew Composer 2 Laravel Valet PHP 8 and PHP 7.4 […]
You often need to refer to a Month’s name in the Plural, Eg, “I want Junes Database back up” or “Display Marches Orders”. Here is a very simple PHP function to show the nice Pluralized month, simply don’t pass in a param to show hte current months plural, or pass in the PHP Date’s ‘n’ ( […]
Over the 15 years or so, I have used the PHP Framework CodeIgniter, Amongst many of its good features is its built in Form Validation Library. Every now and then I need to write adhoc code, or help others to write or develop sections of their site, I happy to help friends in need. Today […]
Do you know how much memory those loops are using ?Why is this page taking so long to load ?Well with this simple PHP code you can daily benchmark different versions of your script to use the least possible amount of Memory.