Re: include/require cached and fopen is not?




Jerry Stuckle;105173 Wrote:
FFMG wrote:
Jerry Stuckle;105090 Wrote:

No, this is not correct. It will be done on every page request.

Whereas EXAMPLE B will open, read, close the file every single
time
there is a page request.

Correct.


Are you saying that the included scripts are revalidated every
single
time?

That doesn't seem very efficient/logical to me.
Are you sure?

Surely some code is in memory.

FFMG



Nope. They are revalidated every time. But it's pretty fast.

Examine the source code if you want. It's available on the PHP site.


I am not doubting you, I just find it very strange that some code has
not been optimized.

I would have thought that some code, (or even sections of code), are
only parsed once.

That is why, (in the example given), I would have thought that EXAMPLE
A would be far more efficient than EXAMPLE B.
But essentially they are the same.

FFMG


--

'webmaster forum' (http://www.httppoint.com) | 'Free Blogs'
(http://www.journalhome.com/) | 'webmaster Directory'
(http://www.webhostshunter.com/)
'Recreation Vehicle insurance'
(http://www.insurance-owl.com/other/car_rec.php) | 'Free URL
redirection service' (http://urlkick.com/)
------------------------------------------------------------------------
FFMG's Profile: http://www.httppoint.com/member.php?userid=580
View this thread: http://www.httppoint.com/showthread.php?t=22555

Message Posted via the webmaster forum http://www.httppoint.com, (Ad revenue sharing).

.



Relevant Pages

  • Re: include/require cached and fopen is not?
    ... Jerry Stuckle;105090 Wrote: ... It will be done on every page request. ... Are you saying that the included scripts are revalidated every single ... FFMG's Profile: http://www.httppoint.com/member.php?userid=580 ...
    (comp.lang.php)
  • Re: Persistent connections
    ... this is not what you were saying. ... Jerry, his solution was to send me on a wild goose chase. ... You want to tell me again, how this is not amateurish psychoanalysis? ... Do you think that my happiness is tied to a Internet group? ...
    (comp.lang.php)
  • Re: Which President
    ... asked for your mailing address, you keep ignoring my request. ... Jerry can't keep on topic and admits to tossing out red herrings. ... I don't respond to red herrings - especially those from Jerry Okamura. ...
    (soc.retirement)
  • Summary:: Update: mount directory mount point
    ... scripts, but still requested my workaround in the interem. ... > Below was my original request. ... > as its own mount point. ... > Operating Systems Analyst for unix systems ...
    (Tru64-UNIX-Managers)
  • Re: OT: interesting global warming quote found elsewhwere
    ... Letters and the like in magazines by scientists are to be taken as ... that, before saying that someone lacks ethics, more needs to be known. ... request, that's one thing - just blowing people off is like shooting ... teh above-referenced statistical analyst befoer I could accuse the person ...
    (sci.electronics.design)