Tag Archives: php
This Apache setting breaks mod_rewrite
I have had this problem on two very different grades of Apache servers now (cheap, shared stuff and a high-end, expensive, HIPAA-compliant box), so I thought I’d post something reasonably search-friendly in case someone else was looking for the answer. … Continue reading
MySQL Transactions
MySQL has the ability to handle what are known as transactions: a series of queries that must be executed in an all-or-none fashion. As a bonus, it’s super easy to use. Using PHP, you can do the following: mysql_query(“START TRANSACTION”); … Continue reading
Use PHP to get all images in a folder
This: $images = glob($directory . “*.{jpg,gif,png}”, GLOB_BRACE); is awesome.
Conflagration of IE6, PHP session_start, and blank pages
Yesterday, I was troubleshooting a problem that (only) showed up in IE6 where anytime I click a link that goes to a page with session_start() in it, I get a blank page with no errors and the address bar shows … Continue reading