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]
|