• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP Functions preloaded like Coldfusion CFC's?

In CF Server, you can create .cfc, which are coldfusion components.

They are basically preloaded user-defined functions that get compiled when the server boots up.

I'm googling around, I'm not struggling to find where PHP offers similar.

Do I just need to make a .php document which a bunch of functions, and simply include the file at the top of my documents that will need to use these functions?
 
Usually, I believe PHP is an interpreted language. So you can't pre-compile functions.

But that depends on your server system. I haven't used any of these.

Thanks.

I was under impression that CFML is also an interpreted language, but I also suppose that's why the precompiled user defined functions require a different document extension.

normal coldfusion is .cfm but the components are declared in .cfc's.

Would I be correct that .cfm files are interpreted, but that .cfc's are not?
 
Honestly, I don't know the first thing about Cold Fusion. I assumed there was compilation going on because you said, in the OP, that certain functions get compiled.
 
Back
Top