Re: Question about how to do this...

From: Date: Mon, 09 Jul 2001 04:58:53 +0000
Subject: Re: Question about how to do this...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56874@lists.php.net to get a copy of this message
"Ben Bleything" <bleythbe@mailbox.orst.edu> wrote: > I believe (and I'm sure someone will correct me if I'm wrong) that > whenever you 'include' or 'require' a file, it drops to regular HTML > mode... so, yes, you will need to use <?php tags at the beginning and ?> > tags at the ends => Think of the behavior of include() as copying the exact text from your code in the include'd file and pasting it as is into the calling code...a la paper and scissors. There is no special transformation. So if the code in the include'd file would have needed PHP codes if it was directly within the calling code then it needs it in the include'd file too and if it wouldn't have in the calling code then it won't in the include'd file. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

« previous php.general (#56874) next »