Archive for the ‘PHP’ Category

Measuring code execution speed

Friday, May 9th, 2008

Elmer and James Do either of you know of any good applications out there to evaluate the speed at which code executes?  (In particular, I care about PHP and Javascript right now.)  I want to be as lean of a coder as possible, but frequently I find that I'm just not ...

The Caesar Cipher

Tuesday, May 6th, 2008

Everyone While I was bored waiting for students that never showed up at work today, I wrote a pair of fun scripts.   The first applies a Caesar cipher to a text string, and the second performs a brute force crack on a ciphered string.  If you want to play with them, ...

Procederal programming versus OOP

Saturday, February 9th, 2008

Elmer I made that file uploader yesterday (mostly), but when I looked again at the code after the fact, I realized it was ass-ugly.  That was ok though, because I had wanted a project where I could use OOP in PHP, and there it was. I spent just about all of today ...

Writing to a file in PHP

Sunday, February 3rd, 2008

Elmer I just looked into writing into files from PHP.  The result was almost disappointing (I was hoping for a project...)  It can be done with one line of code and is as easy to do as is imaginable.  I set up a working model in seriously less than 3 minutes ...

Cool PHP email security script

Sunday, February 3rd, 2008

Team I wrote a pretty cool PHP script just now. You know how it's generally a bad idea to post your email address online because of malicious spiders and such? I just wrote a script that I believe completely nullifies the threat of doing so. (Unless someone ...

PHP

Thursday, January 31st, 2008

Hey Chris, what are SOAP-based web services? I'm getting to the point in Flex where I need to start using PHP as a web service to interface a database. I'd like to talk to you Chris about doing this, and seeing what we can do. I'm also going to try to ...

PHP and XML

Wednesday, January 16th, 2008

I wrote a script last night for someone at work to use, and, holy crap, it's easy to handle XML in PHP.  Like, ridiculously easy.  This wasn't always the case, but since PHP 5 they made a "simpleXML" class that's just freaking awesome. The moral is, if we ever need to ...

Gah! You posted as me!

Friday, December 21st, 2007

Carrie, you posted a comment to my post from my computer without checking the login -- Thusly posting AS ME! That's kind of crazy. As an aside -- Chris, I'd like some sort of very easy to view page for my portion of flashtools (the /elmer directory) that lets me ...

Writing stylesheets in PHP

Friday, December 21st, 2007

Team I had a cool idea: I was curious whether or not it was possible to write stylesheets in PHP.  I set up a brief experiment, and in a word, yes it is.  If you're curious to see what I did, go here: http://hangar.digitaldaydreamsstudios.com/Chris/CSS.PHP/ I wrote a PHP function that loads a stylesheet, ...