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 #173503 is a reply to message #173500] Sat, 16 April 2011 01:17 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 4/15/2011 7:47 PM, Evolution wrote:
> On Apr 15, 3:08 pm, Jo Schulze<antis...@feuersee.de> wrote:
>> Evolution 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.
>>
>> Impossible to answer. require_once or all the other PHP ways to execute
>> another script is not the point (the statement is pretty cheap), the
>> important value is how the actions taken in the required scripts scale.
>
> Thanks for your reply (and all others). What would be an example of
> poor scaling? Mostly, my php amounts to 'require_once' and a few
> calls for "Last modified' date, passing the 'title' and obtaining
> today's date. Pretty simple so far.

When the server gets too overloaded to handle the requests it the time
to worry about performance. And then you need to look at what's
actually causing the performance problem.

Including or requiring files is going to be one of the least of your
worries.

And being concerned about it when you have no problem is just premature
optimization. Rather, build your code where it is maintainable and
understandable.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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 08:02:36 GMT 2024

Total time taken to generate the page: 0.03897 seconds