Scripts and functions that I have written or found useful

Archive for February, 2008

Drupal htaccess for SEO friendly URLs

Wednesday, February 27th, 2008 Posted in Drupal, mod_rewrite | No Comments »

I have had some issues myself with drupal websites and getting the SEO friendly URLs to work when I either have no access to the server or the server changes cannot be made (CPANEL does cause a problem) Attached is a ...

strtotime that accepts dates

Thursday, February 7th, 2008 Posted in PHP | No Comments »

I got tired of writing many lines of code to simply add x amount of time onto a given date due to having to workout the linux timestamp for a certain date, then adding the date, then converting it back ...

Quick Email Function

Thursday, February 7th, 2008 Posted in PHP | No Comments »

Its not the most secure email function in the world but if you want something quick or simple especially for testing then I use the below... function send_email($recipient,$subject,$body) { $headers = "From: Email System\n"; $headers .= "Reply-To: me@mydomain.com\n"; $headers .= "MIME-version: 1.0\n"; $headers .= "Content-type: multipart/alternative; ...