Re: Include files....
| From: | Robert Cummings | Date: | Fri, 18 May 2007 20:25:51 +0000 |
| Subject: | Re: Include files.... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255183@lists.php.net to get a copy of this message | ||
On Fri, 2007-05-18 at 16:20 -0400, Jason Pruim wrote:
> On May 18, 2007, at 4:12 PM, Tijnema ! wrote:
>
> >>
> >>
> >> Thanks in advance for helping me through my obvious friday afternoon
> >> brain fart...
> >>
> >>
> > I guess you forget that defaults.php is a php file and needs to start
> > with <?php and end with ?>
> >
> > Tijnema
>
> Well there it is... The Brain fart... Or misunderstanding... I
> thought since I was calling it within another php script that I
> didn't have to include the <? ?> tags? Obviously I was wrong...
You don't need to close the PHP context with ?>
PHP does it for you when it hits the end of the file... this is a
feature.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'