Jeremy's Blog

Programming Mood

by Jeremy on May.28, 2006, under Uncategorized

I’m not exactly sure how it works for most of you programmers, but I’ve come to the conclusion that how well I code is directly related to how happy I am. For those of you who might’ve talked to me right after that Bowling Incident, you would know that I was extremely frustrated because I couldn’t get anything done. Now, one week later, since things have “changed” I’m now back in the saddle and throwing together good stuff in small amounts of time.

I’m sure most of my readers would remember the find_file() function I wrote, not too long ago, that I’m using in the CDE to detect and verify “configuration stuff” … well, I lost it with that other server, so I had to re-write the actual function. Well, I made an improvement to it this morning, and with about 5 minutes of coding I added wildcard ( * ) support to the function.

This example shows the find_file function detecting conf_global.php (IPB), the find_file.php file, and all files that match class_*.php …

Update: Lewis inspired a bit of a change. The find_file function’s return array now ties the files to the path and the url they’re located at. :)

:

2 comments for this entry:

Trackbacks / Pingbacks

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!