Re: <?include?>... another dumb question
| From: | Team GotFusion | Date: | Tue, 05 Mar 2002 15:04:46 +0000 |
| Subject: | Re: <?include?>... another dumb question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87269@lists.php.net to get a copy of this message | ||
Yep, ordered the manuals from Amazon.com... and they inadvertently shipped
the books to my mom-in-law.... ha ha..... except that she's retired and
computers are still a mystery.
So, I am muddling through with my PHP dev. dictionary until I get to see my
relatives this weekend.
(cheesy smiley) Tami
"Jason Wong" <php-general@gremlins.com.hk> wrote in message
news:php.general-87258@news.php.net...
> On Tuesday 05 March 2002 20:58, Team GotFusion wrote:
> > I have people telling me that I MUST put the <?include?> file before or
> > inside the header of the .php file I am writing before a script is
pulled
> > into my file. I usually just put the <?include?> whereever I need it on
the
> > page. Actually have it embedded in an IF statement, so that if the
> > conditions are not met, the script is not run and there is no need to
pull
> > in the script. It works fine....
> >
> > Is placing the include at the top absolutely required, good programming
> > convention or just preferred?
>
> Simply put, you can place them wherever you want. Obviously if your
include
> file defines certain variables then common sense dictates that you include
it
> before you refer to those variables.
>
> All this and more is covered in the manual.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
>
> /*
> It is sweet to let the mind unbend on occasion.
> -- Quintus Horatius Flaccus (Horace)
> */