FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How many PHP calls is too many for one webpage?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How many PHP calls is too many for one webpage? [message #173488 is a reply to message #173487] Fri, 15 April 2011 19:27 Go to previous messageGo to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 15-04-2011 21:17, Evolution wrote:
> On Apr 15, 12:09 pm, Evolution <cryptoz...@gmail.com> wrote:
>> On my homepage, I have five 'require_once' calls and within one of
>> those, two more 'require_once' calls. I want to increase this from
>> those seven to about twelve. This seems like no problem but I'm
>> wondering what the most anyone else has tried without any costly
>> degradation of load time.
>> Thanks a bunch.
>
> To be more specific, what I want to do is include other php files to
> make up my sidebar based on which page I'm calling from. For example,
> I don't want to include a link to our schedule of speakers if that is
> the page that I am on. Would a case statement be the best way to
> handle this?
>
> p.s. if not obvious, I'm a php newbie.

Every 'require_once' requires the server to open that (php-)file.

This should normally not be a problem, because if you have enough
memory, and the file is used often enough, the contents of this file
will be cached.

You should, of course, only 'require_once' files that you really need,
and skipp files that you do not need.

--
Luuk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I serialize zend_http_request object?
Next Topic: Why no Text after image 1?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 15:08:23 GMT 2024

Total time taken to generate the page: 0.05175 seconds