Re: Include file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This way is faster:

include('..includes/' . $include);

Its always better to avoid using doublequotes.

meatbread.

On Tue, 29 Mar 2005 20:55:17 -0500, James Pancoast <jpancoast@xxxxxxxxx> wrote:
> Try it with double quotes instead:
> 
> include( "../includes/$include" );
> 
> That way works for me.
> 
> And I also hope you're cleansing or filtering $include in some way.
> 
> On Tue, 29 Mar 2005 19:41:15 -0600, Marquez Design
> <smarquez@xxxxxxxxxxxxxxxxxx> wrote:
> > Does anyone know how to include a variable page? The variable is a page
> > name. Such as "inluded_file.html"
> >
> > Include ('../includes/$include');
> >
> > Does not seem to work.
> >
> > Thanks!
> >
> > --
> > Steve
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux