If you’re like me, then you are useless at remembering a couple of things which tend to start a project. I recently found the “FallbackResource” command in Apache.

This single command replaces the mod_rewrite rules:

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /
	RewriteRule ^index\.php$ - [L]
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule . /index.php [L]
</IfModule>

with the single command

FallbackResource /index.php

I can remember that one! It basically does the same thing – If the file does not exist (any file, such as css/images/PHP scripts) then it will route it to index.php.

Posted in PHP.

Hello, I’m Alan Farquharson. If you are here, I guess you already know that, though!

I have just finished my Computing Degree at Manchester Metropolitan University (MMU), gaining a 2.1 Bachelor’s_degree with honours.

During my 3rd year at University I did a placement year. I worked at Chameleon Interactive, with the role Junior Web Developer  and as the Server Administrator, with a team of guys from all over Manchester. I worked on projects such as AMREFHelpAgeNorth West Air Ambulance and NASS. Whilst there, I developed my skills in PHP (OOP and procedural), MySQL, HTML, AJAX/JavaScript, XML, RSS, Photoshop and SSH (Linux – Mainly RHEL (Cent-OS/Fedora) and Debian (Ubuntu) based systems).

I now work for www.magmadigital.co.uk - I started in April this year (2012) and I love it! I’m again a Junior Web Developer and have been working on internal and external  Web Applications for DanBro, MedicX and Surveyorship. I’ve also helped run the PHPNW conference – which is happening this weekend!

Posted in PHP.