Re: include/require cached and fopen is not?
- From: FFMG <FFMG.30lfht@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 25 Nov 2007 02:35:42 -0500
Jerry Stuckle;105173 Wrote:
FFMG wrote:
Jerry Stuckle;105090 Wrote:time
No, this is not correct. It will be done on every page request.
Whereas EXAMPLE B will open, read, close the file every single
singlethere is a page request.Correct.
Are you saying that the included scripts are revalidated every
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).
.
- Follow-Ups:
- Re: include/require cached and fopen is not?
- From: Jerry Stuckle
- Re: include/require cached and fopen is not?
- References:
- include/require cached and fopen is not?
- From: FFMG
- Re: include/require cached and fopen is not?
- From: Jerry Stuckle
- Re: include/require cached and fopen is not?
- From: FFMG
- Re: include/require cached and fopen is not?
- From: Jerry Stuckle
- include/require cached and fopen is not?
- Prev by Date: Re: file download?
- Next by Date: browser waits forever on my script
- Previous by thread: Re: include/require cached and fopen is not?
- Next by thread: Re: include/require cached and fopen is not?
- Index(es):
Relevant Pages
|