Related Content
Recreating Spotify Wrapped In PHP
I quite like the end of the year report from Spotify that they call "Wrapped". This is a little application in which they tell you what your favorite artist was and what sort of genres you listened to the most during the year.
Should A Constructor Throw An Exception?
Let's say you had a class that you wanted to use, but there was some sort of error in creating the object. This might be that the wrong parameters were passed, or the third party service (eg. a database) wasn't available at the time of creation.
PHP Question: Variable Reference
Question
What does the following code print out?
function arrayPrint($array)
{
echo implode(' ', $array);
}
$arrayA = [1, 2, 3];
$arrayB = $arrayA;
$arrayB[1] = 0;
arrayPrint($arrayA);
Creating An Authentication System With PHP and MariaDB
Using frameworks to handle the authentication of your PHP application is perfectly fine to do, and normally encouraged. They abstract away all of the complexity of managing users and sessions that need to work in order to allow your application to function.
Creating Sparklines In PHP
A sparkline is a very small line graph that is intended to convey some simple information, usually in terms of a numeric value over time. They tend to lack axes or other labels and are added to information readouts in order to expand on numbers in order to give them more context.
PHP:CSI - Improving Bad PHP Logging Code
I read The Daily WTF every now and then and one story about bad logging code in PHP stood out to me. The post looked at some PHP code that was created to log a string to a file, but would have progressively slowed down the application every time a log was generated.
Comments
Submitted by Michael Smyth on Thu, 03/05/2009 - 16:14
PermalinkI'd hoped that someone had prepared this somewhere online! Only searched for it on the off chance and you're number one in Google for it.
Thanks again, you've easily saved me an hour or two in development of my new site :)
Aaron
Submitted by Solar Monster on Tue, 04/12/2011 - 17:28
PermalinkThis saved me an hour or so ;)
Thanks :)
Submitted by Phil Lavin on Thu, 09/22/2011 - 20:21
Permalinkthis is perfect.
Submitted by Anonymous on Tue, 01/03/2012 - 01:37
PermalinkThank you for this... just noticed though Tyne & Wear is missing
Here it is
"Tyne and Wear"=>"Tyne and Wear", to be inserted after torfaen
Thanks
Keith (from Tyne & Wear)
Submitted by Keith on Sat, 03/24/2012 - 09:57
PermalinkAdded. Thanks for the tip :)
Submitted by philipnorton42 on Sat, 03/24/2012 - 19:48
PermalinkSubmitted by John Cuthbert on Tue, 07/01/2014 - 14:26
PermalinkAdd new comment