Articles tagged with "PHX2600"

First Friday script updated and simplified

NOTE: The latest version of this script can always be found here: https://github.com/PHX2600/FirstFriday

With this update I have drastically reduced and simpified the code to produce the same results. I did some rigorous testing of my own to make sure this script will calculate the correct date, but that doesn’t mean it’s bullet-proof. If you find a bug, please email me so I can fix it.

first-friday.php

Somewhere along the lines of moving ...

Continue Reading

Calculate the first Friday of next month with PHP

UPDATE: This script has been updated, see: https://github.com/PHX2600/FirstFriday

While developing phx2600.org, I ran into a slight dilemma. The PHX2600 meetings occur once a month on the first Friday of every month, and we wanted to display that on the site. However, it was becoming a tedious chore to change the date once a month manually. So, being the automation addict I am, I thought, why not write a script. So one night I hammered out ...

Continue Reading