[thelist] Force same PHP include several times on a page

Stefan Schwarzer st.schwarzer at geois.de
Fri Apr 25 05:40:02 CDT 2008

Hi there,

it seems PHP5 is handling a file include differently than PHP4. I just  
migrated, and in one of my apps, I have an include for a specific PHP  
file (which loads a couple of complex SQL query builds) several times  
on the same page. I guess it's not very efficient; instead it would be  
wiser to build a function instead. But.... don't want to touch the  
code for the moment.

Now, with PHP4, it loads the include only once. But ignores the other  

Anything I can do about?

Thanks for any hints!



   Stefan Schwarzer

   Lean Back and Relax - Enjoy some Nature Photography

   Appetite for Global Data? UNEP GEO Data Portal:

More information about the thelist mailing list