PHP has 3 functions that output text; echo, print, and printf. But, what’s the difference? More importantly, which one should be used in which situation?
It you have spent time on sites that use a CMS system as a back-end, you may have noticed a line towards the bottom that tells you how long that page took to generate. While not always useful for the end user, it is very useful to you as a the developer. It gives you a quanitative look at how quickly your pages are being generated, and you can use this to determine if your code or queries need to be modified to work more quickly or if your server is overloaded.
Often times while developing web pages you find yourself needing to know how the server is set up. If you have been developing in PHP for any length of time, certainly you know the command phpinfo(). For those of you that have not tried this, you’re in for a surprise at how much it tells you.
During development of an online application, I needed a way to generate a GUID. I’m sure there are other, better ways to do this. But, this is how I decided to do it.
I’ve been banging my head the last day or so with a single failing PHPUnit test in a Laravel project I’m working on. Been able…
tl;dr – You can’t use Laravel helper functions in config files if you’re running artisan commands. Here’s a workaround.
WordPress transients are great, but don’t always make sense with the transient data is post specific. This class lets you store transient data in post meta.
I’ve been looking for a quick and easy way to write WordPress posts in Markdown, and couldn’t find one. So I wrote one.
I’ve written out an array of Ace Editor themes probably a dozen times. Figured it was time to save it as a Gist,
Those that are supposed to know such things say that internal links are really important on your websites. But just plain links are kind of…
Can't find what you're looking for? Try refining your search: