On Apr 1, 2004, at 4:54 PM, Ben Curtis wrote:
Application.cfm / OnRequestEnd.cfm
No equivalent as far as I know.
this has already been said, auto_append_file and auto_prepend_file, but there's also register_shutdown_function ( http://pt2.php.net/manual/en/function.register-shutdown-function.php ), the only problem is that there is no 'on begin' equivalent :\
You're not obligated to use a third-party system, you can emulate the cf application scope using several ways:
Application scope (mostly, RAM-persistent shared vars)
You'll need a third-party caching system.
- Shared Memory Module ( http://www.php.net/manual/en/ref.sem.php )
-- this workaround presents several issues, like not beeing available in the windows platform, it's very unstable, very hard to build very usable code !
- SQLite Module ( http://pt2.php.net/manual/en/ref.sqlite.php )
-- This is only been implement in PHP5 but it's a pretty good solution ... its never been tested performance wise ( large and very conclusive tests, not basic ones )
Session handling in php is very simple, just session_start() on every file you want to be able to access session data ( or you can use the session_auto_start directive in php.ini ) and then use the global super array $_SESSION - remember in php every variable in php beggining with 1 or 2 underscores should be considered 'magical'Session scope
There is a session mechanism in PHP - read the docs.
Like Sean said, in PHP you hv classes, and they were very improved in PHP5 ! As for webservices, an easy task in cfc's, in php you can do it in 3 distinct ways, PEAR::SOAP, nuSOAP and the new SOAP extension found in PHP5 ( http://pt2.php.net/manual/en/ref.soap.php )CFCs
PHP has fairly full-blown classes (and PHP5 enhances this even further). And Mach II will very soon be available for PHP (my website is already running on a pre-beta version). You can also get Fusebox 3 for PHP (the previous version of my website ran on that).
I'm no expert - I learned all I know from the (very good) online docs and a few books. Everything you need to know is there if you're prepared to go look for it :)
regards,
idss =)
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
