Five Card Story: Five Card Flickr Lives

stories: prev | random | next

a Five Card Flickr story by cogdog created Aug 08 2018, 02:44:15 pm. Create a new one!

flickr photo credits: (1) bionicteaching (2) bionicteaching (3) bionicteaching (4) bionicteaching (5) Serenae

about this story

This web site for Five Card Flickr is old, really old, rusty code has been running since maybe 2008? 2009? It's all hand coded PHP and calls to a mySQL database, the HTML is likely not good modern design.

My blog cannot even confirm that birthdate. Ah, there it s, the very first story in the Gallery is from September 8, 2008.

But it just goes and goes and I barely check on it. In that time, more than 20,000 stories have been published there. Woah, Neo.

Yesterday I awoke to a brightnotice on twitter from Peter:

"Howdy @cogdog 5 Card Flickr has been down for a few days. Will it be running by Weds? Planned to share with some teachers."

I went to look... and rather than the typical site was a PHP error message about a call to an unknown function in the code that connects to the database. My web host had migrated my account to a new server, so first I checked the database was there, then tried creating a new user account. No dice. Then I looked closer at the message; maybe my old database connection code (which was borrowed form code a student worked named Colen wrote for other projects in about 2000) was broken.

Aha! It made sense. The function "mysql_connect" was removed in PHP 7, and my server move had meant a migration to the new site. So I started rewriting it with a new connect script. That worked. But then every mysql call I made would need to be re-written. No time for this today.

So I hung a "sorry for the broken site message" as I needed to focus on other work. But it nagged at me, and I went to my web hosts community site, thinking there might be a way to run my site under the old version of PHP. And Boom! there was, I was able to change it for just this one site.

And it connected, but then... White Screen of PHP Death. I'd have to find error logs. So I aborted, but contacted the support with the issue, thinking it was rather obscure. My hero Meredith wrote back in less than an hour, she had fixed it- I had made the wrong selection for the older version of PHP.

And so now, this old site flies again. Maybe a bit tattered. But it was worth telling this story of Five Crd Flickr IN Five Card Flickr. A 10 year old web site can still fly.

share this story

permalink to story:

Copy/Paste Story

Click once to select, then copy and paste HTML to your own blog/website.

create a different story from these same cards

Do you have another interpretation of the story behind these pictures? Add it to the collection as a new story!

flickr photo credits: (1) bionicteaching (2) bionicteaching (3) bionicteaching (4) bionicteaching (5) Serenae

For security purposes, please enter the correct words matching the images (blame the spammers):

stories: prev | random | next