[thelist] [PHP] Anyway of Implementing CFC-like code in PHP?

Chris Johnston chris at fuzzylizard.com
Sat Oct 18 23:43:36 CDT 2003


Simon Willison wrote:

>> What I am wondering is this: is there any way of duplicating this
>> functionality in php? Or is php code intrinsically composed of inline
>> code designed specifically for a particular page?
>
>
> This is very possible using PHP. From what I've seen of CFCs they are 
> similar to the concept of a class in object oriented languages. PHP 
> has a fair amount of support for object orientation (with better 
> support on the way in PHP 5) and allows you to define classes. PHP's 
> include() and require() statements allow you to include code from 
> other scripts. Hence you can define classes in files and then use them 
> in a number of different scripts on your site.
>
> Hope that answers your question,

Okay, in a way, yes it does. Thank you. However, you wouldn't happen to 
have a link to a tutorial or article that I could follow?

chris johnston

P.S. My apologies for posting this so many times, I am having serious 
problems right now with getting Thunderbird and Bell Sympatico to 
communicate. Thunderbird will go to send an email and will look like it 
has stalled. I click on cancel and try to resend only to find out that I 
have sent two emails. This is getting to be very frustrating.

Once again, my apologies.



More information about the thelist mailing list