If you’ve ever had to deal with time and PHP before, chances are you’ve had to deal with time zones. Dealing with time is difficult enough, but once the time becomes variable based on the preferences of the user of your application, it becomes even more confusing. Why so confusing? I mean, it seems simple… Read more »
Posts Tagged: php
How to Create Transparent, Rounded Corners Using ImageMagick
Dynamically adding rounded corners to images can be a tricky process. Making sure those corners are transparent adds an additional level of complexity. In the project that I am working on, we used to fake the rounded corners with ImageMagick. Since our site had a white background, applying white, pre-made corners over the image was… Read more »
PHP and Regex – Replacing Repeating Characters with Single Characters in a String
[Update] – a comment left by TLP gives a much better solution to the problem that seems to be better in benchmarks as well. I’m changing the post to reflect the best and fastest method for the situation described. In a previous post, I described a situation where we needed to remove a repeating dot… Read more »