php
Smart Image Resizing while Preserving Transparency With PHP and GD Library
Update: this function is now available at github.com/maxim/smart_resize_image.Fork away!
Should be easy to find, right? All you want is a function that resizes an image to constraints (doesn’t care if it should scale up or down), with possibility to select if you want to keep it proportional, and possibility to use either width or height [...]
Improving Agility with PHP: Storing Multiple (Boolean) Values In a Single Integer
Say you have multiple checkboxes in your html page. At some point you will need to add a few more checkboxes for some configuration options. Or they could be a whole bunch of boolean flags in your program that you need to keep track of. Usually you would have to create numerous [...]
Server-Side Transfer in PHP
I couldn’t find this solution on the first page of Google search results, thus hoping this will help.
PHP doesn’t support something like ASP’s server-side transfer/redirect. This is due to the fact that PHP is built to support many different servers, and server-side redirect is actually a server-specific feature which is part of Microsoft IIS. [...]