You are here: Re: put contents of linked file into section of document « All PHP « IT news, forums, messages
Re: put contents of linked file into section of document

Posted by Christina on 05/09/06 16:42

Excellent. This is a great help. I'm sure I'll be back with more
questions...It's not easy for a novice to write groupware...

Thanks again...

Chris

"MS" <nospamplaesegr8t_ukuk@yahoo.co.uk> wrote in message
news:lPqdnSwLhsOhUcLZRVnysQ@bt.com...
> What is the purpose/function of inserting the ".php" into the file exists
> code?
> This is just how my site is set up. There is only one page...but 3 steps
> to
> "index.php"
>
> Step 1) index.php outputs the header.php (require_once "header.php";)
>
> Step 2)
> then index.php includes a file dependant upon $pageid
> eg. $pageid = "profile"
> therefore the profile.php page is included (if it exists)
>
> Step 3)
> index.php then outputs the footer (require_once "footer.php";)
>
> Does that mean all called/inserted pages will have to be .php?
> pages ending with .php do not need to contain any php code. (they can be
> plain html) if they do contain php code... the code will be parsed.
>
> What is the $linkid variable attached to?
> $linkid is same as $pageid i just changed the name so you didn't get
> confused... lol.. silly me.
>
> $linkid would contain your page names... eg "profile" or "calendar" so
> that
> when clicked it includes the profile.php page or calendar.php page...
>

 

Navigation:

[Reply to this 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

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