Saturday, March 21, 2009

websitedesignby.com

Please see me now at websitedesignby.com.

Thursday, August 10, 2006

nl2br 2.0

nl2br doesn't get rid of \r characters that will break lines on windows.

So use
preg_replace("/[\n\r]/","", $string);
?>
instead :)

Wednesday, July 05, 2006

Save File Diaglogue with PHP

Replace replace "saveme.zip" with the filename you want to save as... and "myziptosave.zip" with the actual path of the file on the server.


// name you wish to save file as
$filename = "saveme.zip";

// path to file you are saving
$filepath = "myziptosave.zip";

header('Content-Disposition: attachment; filename="'.$filename.'"');
readfile("$filepath ");
?>

Monday, May 08, 2006

Old but good code

This is my preloader code, I know it's probably horribly outdated but it suits me good.

loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
frame = Math.ceil(loadedbytes/(totalbytes/100));
loader.gotoAndStop(frame);
if (loadedbytes == totalbytes) {
nextScene ();
}

Saturday, April 01, 2006

Cut Your Hair & Get a Real Job

Man this year is shaping out fairly decent.

So I quit smoking, got a good haircut, went shopping and updated my clothes and glasses. Now I may be taking a full-time position with a pretty cool company doing what I love for decent pay.

Things might be falling into place for once. Maybe when you make a small step or decision to help yourself, one thing leads to another.

Monday, March 27, 2006

Mike Nott » PHP Whois Script

Here is a very handy little piece of code to do a whois lookup.

I am integrating it into my project / client management CMS.

Thanks Mike.

Mike Nott » PHP Whois Script

Saturday, March 25, 2006

Christian Death

"The Koran is very clear and the words of our prophet are very clear. There can only be one outcome: death," said cleric Khoja Ahmad Sediqi, who is also a member of the Supreme Court. "If Karzai releases him, it will play into the hands of our enemy and there could be an uprising."

Rahman is being prosecuted under Afghanistan's Islamic laws for converting 16 years ago while working as a medical aid worker for an international Christian group helping Afghan refugees in Pakistan.

foxnews

Here we go again. These moronic clerics and their brain-dead sheep-head followers need to wake up to the 21st century. What is it going to take? We need to clone Paris and Nicole, armies of them throughout the Middle East to infiltrate in Trailers.... "That's hot", "Do you love it?"

deviantART: admedia

deviantART: admedia I am so confused by this. Usually I can register / log-in and start using something...

I just wanted to add something to my bookmarks there... I ended up making the artist a 'friend'. But I figured out the 'favourites' thing I was supposed to use. But now I have no idea how to edit / delete the 'friend'.

Anyone want to teach me how to use Deviant Art ? :)

Where do I edit these friends / deviants... where to i use / see this list after I add deviants?

Oh and I know, so spare me any of the 'Dude, don't use deviant art cause blah blah blah...' I don't want to hear it... I am having fun, so leave me alone!!!