Re: Including PHP scripts on same server [message #171900 is a reply to message #171891] |
Thu, 20 January 2011 17:25 |
jwcarlton
Messages: 76 Registered: December 2010
Karma:
|
Member |
|
|
On Jan 20, 7:02 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> On Jan 20, 6:18 am, jwcarlton <jwcarl...@gmail.com> wrote:> I currently have several functions scripted on one page.
>
> No you don't. A "page" (or more correctly a document) is what someone
> sees on a browser. It is not the same as a php file.
>
> One php file may generate many html pages or many php files may
> generate only 1 page.
>
> Do not confuse the 2.
I'm really not sure how I would have said this correctly. What I'm
referring to aren't really functions, either; they're sections of a
single page that is created (executed?) via PHP.
For example, consider the Yahoo.com homepage. What if each section
(the navigation, the main news in the middle, "Trending Now" to the
right, the Google ad, "Marketplace" below, and "Popular Travel" beside
of it) were each including a separate PHP file to create them? Would
this be slower, or the same, as compared to them being coded in a
single file?
|
|
|