Just some info for FB folks playing with PHP (or thinking about it)...

I'm moving a couple hundred domains over to a dedicated RaQ3 server and
since I don't have a Linux copy of CF (yet) I'm porting some of my apps to
PHP. I'd looked at the "webbox" stuff on phpbuilder.com and wasn't really
looking forward to it...

However, I found that if I didn't care about my apps being called from other
apps, the port was _very_ quick and easy. The PHP switch structure is very
much like CF's version (and unlike JSP's version which just sucks) so
index.php looks a lot like what we're used to. Here's a little chunk:

<?php
include "app_locals.php";
switch (trim($fa))
        {
        case "homepage":
                {
                include "dsp_header_01.php";
                include "dsp_homepage.php";
                include "dsp_footer_01.php";
                }
                break;
        case "subscribe":
                {
                include "act_subscribe.php";
                include "dsp_header_01.php";
                include "dsp_" . $oldfa . ".php";
                include "dsp_footer_01.php";
                }
                break;
        default:
                echo "$fa not defined";
        }
?>

I've been doing PHP for a grand total of less than a week, so there may be
better ways of doing certain things, but I had my first small site ported
over (including database access to mySQL) within about 3 hours.

I hope the fuebox.org site ends up with some PHP info on it soon. (hint
hint) :)

 Jay Jennings
 www.alakazam.com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to