PHP

Increase the PHP Memory Limit on a Dreamhost Virtual Private Server (VPS)

If you've ever seen a PHP error like "Fatal error: Allowed memory size of xxx bytes exhausted..." on one of your websites, then you might need to increase the memory limit for PHP on your web server. Depending on your web host, this may or may not be possible. If you have a Dreamhost VPS, then luckily it is! Here's how you do it.

Drupal: Drag and Drop Tables in Custom Modules

Drag and Drop Tables in Drupal

Today I want to cover how to use those built-in drag and drop tables (the ones where you can sort the rows however you want) in Drupal, in the context of setting a weight field in a custom module. There was a pretty good article about this by Computer Minds, but I found some parts of their approach buggy, and not what I prefer, stylistically. So, consider this article my improvements upon their work.

Creating Image Thumbnails using PHP and ImageMagick

Last month I wrote a post on using Photoshop and Javascript to generate thumbnails. That's useful if you have to process a bunch of images for a website you're making, but what if you want to have a function on your website that accepts image uploads and then dynamically generates thumbnails? There's a lot that goes into that, but today I'm going to provide a basic PHP function (using ImageMagick) that gets the image processing part of the job done.

Subscribe to RSS - PHP Subscribe to Coffeeshopped Blog