Jump to content

Which is preferrable -- a function in an include, or a stand-alone include?


mrherman

Recommended Posts

I may not know what I'm talking about, but here goes...

 

Which is faster?

 

1. Include a .php file that has a collection of functions, and call a particular function repeatedly to make changes to a db.

 

2. Take the function in question and write it as a script in a .php file and include the file repeatedly?

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.