One for the PHP peeps:

If your using sessions and keep getting an error about how the headers cannot be sent because they have already been sent this usually occurs because the session_start() function was called after you started printing to the user’s browser (i.e. a print / echo call or straight HTML). Simply make <? session_start(); ?> as the first thing in your code (i.e. the very first line) and it’s all good.

Written on December 24th, 2003 , Informative

Want to alter the default error pages displayed by IE ?

Download Resource Hacker (http://www.users.on.net/johnson/resourcehacker/) and open %SystemRoot%\system32\shdoclc.dll. In the resource fork (i.e. the folder in the tree view) marked “23″, all the HTML source for the various IE error messages is contained. Simply replace the HTTP_404.HTM resource code with your own source.

Nice eh :)

Written on December 23rd, 2003 , Informative

Heh, go to Google and search for ‘Weapons of Mass Destruction’ and click “I’m Feeling Lucky”. Funny :)

Written on December 15th, 2003 , Funny

Music I’ve heard where Rizzla rolling papers have been mentioned -

Cypress Hill – Highlife
Ratpack – Slammin Vinyl Absolute Old Skool Classics (don’t know the actual track)

‘Tis a conspiracy to make us all buy rolling papers I tell you…

Written on December 14th, 2003 , Serious

Added a new service that allows quick searching of multiple engines, although theres probabaly not as much benefit to people who access the page over the net but still :)

It’s in services > online search.

Written on December 13th, 2003 , Serious

By the way, just putting up an entry that should have been put up last week but I couldn’t because the site wasnt online:

If you have a Windows NT based system (NT 4/2000/XP/2003) and you lose your boot record yeah, “lose” it does happen in windows :) you can fix it by booting off the 2000/XP/2003 CD (your NT CD may not be bootable), entering the manual rescue mode, and typing “fixboot”. This will restore your boot record from a previous backup.
Thats gotta be one of the smartest things Microsoft ever did…NT makes a backup of the boot record every time it changes and successfully boots…

Written on December 9th, 2003 , Informative

Ok, the new site is coming along well, though the guestbook still looks pretty funky because of color clashes and a lot of the site is still just broken links but hey you can’t have it all can you :)

I just put the news entry system online, so this is the first news entry of the new site.

It will go live on my webspace before the end of my holidays (end of Feb), but what is on the webspace will not be as updated as what is on my home machine because of synchronisation issues and because they don’t give me all the facilities that my site requires…oh well.

Looks better than the old one though eh?

Written on December 6th, 2003 , Serious

SirSpanky.com – The Secret Diary of James Pearce Aged 20-Something is proudly powered by WordPress and the Theme Adventure by Eric Schwarz
Entries (RSS) and Comments (RSS).

SirSpanky.com – The Secret Diary of James Pearce Aged 20-Something

Personal jorunal of a professional geek – James Pearce in Perth, Australia