Excellent thanks I thought it'd be something simple

Altho I did need to put a @ on the header function otherwise it spits out a "headers already sent" error, appreciated though!
//Edit
Can't belive I missed this last night but I just found the headers_sent() function which does exactly what I needed it to do... guess that'll teach me to program t 6am eh?