While working on the redesign to this blog, I wanted to add the “Interesting Stuff” column you see just to the right. Using the RSS feed widget built into WordPress would be perfect, except for the fact that it only updates ever 12 hours. In today’s Quick Tip, we fix that problem.
Category Archives: PHP
suPHP
suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.
PHP ftp upload tutorial
To upload a file to ftp you need a html form where you can insert the ftp details, like the ones described above:
Localizing PHP web sites using gettext
Developing multi language web sites using PHP is actually very easy. A common approach is having an include file for every supported language which contains an array that maps string ids to localized text (for example "WelcomeText" => "Welcome to our homepage." would be included using something like <?= $strings["WelcomeText"] >). However there are several …
wp Add Facebook Open Graph Meta Tags
Add Facebook Open Graph Meta Tags Place the following code in custom_functions.php (making changes where noted):
Convert Numbers to Words
Convert Numbers to Words This little script was whipped up to convert numbers to words for use in a cheque book, it has an upper limit of 999999999 but that should take care of most sane amounts of cash. Should you require a function that needs to spell out more cash than this, my rates …