Reply to Re: [PHP] Include file

Your name:

Reply:


Posted by James Pancoast on 03/30/05 04:55

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@marquez-design.com> 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
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация