It appears that Safari 5 will not respect the base href tag when used in a page served via https when the base href indicates a URL with the http protocol. There is probably more to this issue, but I ran across it while working on an Authorize.net integration using their SIM API. After a […]


Continue Reading


Smarty File Size Modifier

 May, 02 - 2009   4 comments   How To

Here’s a simple Smarty modifier that will format an integer that represents the number of bytes in a file as a human readable string. Usage: {$fileSizeInBytes|file_size} Example: {assign var=fileSizeInBytes value=10485760} {$fileSizeInBytes|file_size} {assign var=fileSizeInBytes value= 768000} {$fileSizeInBytes|file_size} {assign var=fileSizeInBytes value=303} {$fileSizeInBytes|file_size} Output: 10 MB 750 Kb 303 bytes <?php /** * Smarty plugin * @package Smarty […]


Continue Reading