"Rick70" wrote:[color=blue]
> Hello all.
>
> I have an index.php file that has a lot of functions that I wrote.
> Let’s say for the sake of argument that there are 1000 functions
> of
> 100 lines each. The index.php file is invoked with a "state" a[/color]
la[color=blue]
> "index.php?state=L1-2L3C4-47". Different functions are called
> according to what the state is, and then user actions can cause
> index.php to be invoked again with a different state. For[/color]
instance,[color=blue]
> you can click an "erase this part" button, and the page will[/color]
display[color=blue]
> again with that part missing.
>
> I don’t mind if it takes even a second or two to "compile"
> (parse?
> condense?) the functions the first time through, but a change of[/color]
state[color=blue]
> should take only 1/10 of a second or less. Apart from the[/color]
compiling,[color=blue]
> that goal is achievable, the processing isn’t that complicated,
> but if
> the php engine starts from scratch each time I pass through the[/color]
file,[color=blue]
> I will have a problem.
>
> Or maybe, since it is a server-side process, rather than compiling[/color]
the[color=blue]
> functions once for each contact with the page, the functions are
> compiled once when the first person contacts the page.
>
> I just have no idea how it works, and I need to know so I can plan[/color]
my[color=blue]
> code accordingly.
>
> Does somebody out there have a detailed knowledge of how this is[/color]
done?[color=blue]
>
> Regards,
>
> Rick[/color]
It does start from scratch every time, and for most applications, it
seems to be just fine. If not acceptable, then look at code caching
s/w like mmcache and others.
--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL:
http://www.dbForumz.com/PHP-Function...ict151290.html
Visit Topic URL to contact author (reg. req'd). Report abuse:
http://www.dbForumz.com/eform.php?p=506566