Category Archives: Web development

CodeIgniter installation and setup

Check PHP is a new enough version: php –version Copy the unzipped download to the folder above the web root. This is to improve security so a user can’t get to the files by typing a URL. Move the index.php file … Continue reading

Posted in PHP, Web development | Leave a comment

SASS, Compass, Foundation

DRAFT These frameworks make working with CSS easier and more flexible. Each adds an extra layer on functionality onto the last: SASS – adds useful syntax to standard CSS, e.g. allowing you to use variables. Files have to be converted to … Continue reading

Posted in CSS, Web development | Tagged , , , | Leave a comment

Working with SVG images on websites

To make SVG work, both the browser and the server need to support it: Browser support Firefox 3 does not natively support it IE9 does Server support Apache needs the following settings, either in httpd.conf or .htaccess: AddType image/svg+xml svg … Continue reading

Posted in Other, Web development | Leave a comment

Get temp folder and unique file

This seems the best way to get both the system’s standard temp directory and create a unique file within it. if($options[“rename”]!=0) { if (!function_exists(‘sys_get_temp_dir’)) { function sys_get_temp_dir() // For PHP 4- { if($temp=getenv(‘TMP’)) {return $temp;} if($temp=getenv(‘TEMP’)) {return $temp;} if($temp=getenv(‘TMPDIR’)) {return … Continue reading

Posted in PHP, Web development | Leave a comment

Preventing RGB colour shifts

If you are working purely in RGB with software more commonly used for print (and therefore CMYK), colours may shift unexpectedly when exporting between different formats. For example, this piece of artwork, created in Illustrator, contains some text plus a … Continue reading

Posted in Web development | Tagged , | 5 Comments

Installing and setting up phpMyAdmin

This is unusually straightforward for open source software. From Unix command line: wget phpMyAdmin-3.3.9-english.tar.gz (or use curl instead of wget) tar -xvzf phpMyAdmin-3.3.9-english.tar.gz (on the webserver) ln -s phpMyAdmin-3.3.9-english phpMyAdmin (so you can access the better-named ‘phpMyAdmin’ and have it point … Continue reading

Posted in mySQL, PHP, Unix | Leave a comment

CMS systems

http://www.joomla.org Free (open source) Gives you a ready-made design (template) which can be edited as necessary Conclusion: seems powerful but might not be worth it if you have to make lots of changes to the templates to get the design … Continue reading

Posted in Web development | Leave a comment

(Most) reliably working with UTF-8 in PHP

If these functions are used in place of the standard PHP string functions, results will be UTF-8 if at all possible. Other encodings can be given instead if desired. The code also includes some other useful string functions.

Posted in PHP, Web development | Tagged , | Leave a comment