Blog Tag: Fusebox
PHP Fusebox Lense on Squidoo
I made a lense for PHP Fusebox on Squidoo. It has some general description, links to books on Amazon, and shameless links to my own PHP Fusebox articles. If you have suggestions or improvements, comment or make contact. Enjoy!
Fusebox File Exists
I hacked my local copies of the fusebox core files (for version 4 and version 5) to NOT check if a file exists before including it. This seems to have sped things up a bit.
I think the file_exists() check is somewhat helpful for programmers during development. When you go live, either the file is there or it isn't. No reason to sacrifice performance for the sake of hand-holding.
I hear you ask, "Why are you using fusebox if you're concerned about performance!" - well... that's a topic for another time... for now, it's not terribly slow.
Kases?
In the new 37 Signals application Highrise, (37 signals are the fine people who brought you Basecamp), they have a section for Cases, i.e. like a project or series of tasks - as in "I'm on the case, cheif!".
The url for this is /kases. I did a quick search and found out why the url is /kases. It turns out to be a work around for a language key-word colision in Ruby, which gets exposed in Rails.
Not to be smug (ok, a little...), but I am suddenly quite thankful for the "do it by hand" nature of my current software set-up - build on fusebox for PHP. I feel like posting several new pages on podo, like: /if, /case, /switch, /foreach, etc.
Go Bleep Yourself
There is now a way to get a "Go (Bleep) Yourself" response on philsown.org.
It has to do w/ form mail scripts and the POST method. Spammers look for sites that have an insecure version of a popular old "form to email" script and exploit it to send spam. I've noticed a few attempts to find a script like this in my traffic reports lately so I thought I would mess with them (and knock it out of my Failure Report at the same time).
Here's the relevant circuit code:
<if condition="$_SERVER['REQUEST_METHOD']=='GET'"> ... <false> <do action="contactV.phoneyGFY" contentvariable="layout['content']" /> </false> </if>
It says "This is the web version of Nelson going: 'Ha ha!'" Is it Christian of me to cuss at spammers? Probably not, but someone has to. I may generalize the text a little and reuse message in other places too. That might be fun. Enjoy!
Update: This isn't really relavant anymore...
Application Scope for PHP
1 Comment | Latest by: hemant | Add A Comment! »»
With the help of David Huyck, I have developed a small class file to handle Application Scope in PHP. Check it out and laugh at my amateurish code. Please send me any comments or post something on the SourceForge forum. This AppScope file is being used in the new PHP Fusebox core that several people are developing.
