[thelist] Force same PHP include several times on a page
Nan Harbison
nan at nanharbison.com
Fri Apr 25 11:35:25 CDT 2008
Hi Stef,
Are you using require_once()?
Nan
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Stefan Schwarzer
Sent: Friday, April 25, 2008 6:40 AM
To: thelist at lists.evolt.org
Subject: [thelist] Force same PHP include several times on a page
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
include-commands.
Anything I can do about?
Thanks for any hints!
Stef
____________________________________________________________________
Stefan Schwarzer
Lean Back and Relax - Enjoy some Nature Photography
http://photoblog.la-famille-schwarzer.de
Appetite for Global Data? UNEP GEO Data Portal:
http://geodata.grid.unep.ch
____________________________________________________________________
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester and archives
of thelist go to: http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list