FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » when incuding a page
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: when incuding a page [message #184116 is a reply to message #184111] Fri, 06 December 2013 19:44 Go to previous messageGo to previous message
Christoph Michael Bec is currently offline  Christoph Michael Bec
Messages: 207
Registered: June 2013
Karma:
Senior Member
richard wrote:

> <?php inlcude "page.html" ?>
>
> Should the include page be a complete page with headers or not?
>
> The validator throws a hissy fit when doing so.
>
> If not, then how does one properly include the stuff for that page?
> Such as CSS or javascript.

Well, actually the include statement does not include a _page_, but
rather the contents of a *file*. This basically works the same, as if
the file contents were inserted instead of <?php include 'whatever'?>.

If you have to include a "page" (i.e. an HTML document) stored in a
file, you might be better off to display it as an IFRAME.

--
Christoph M. Becker
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: working model of the latest project
Next Topic: Include gives warning
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 10:12:11 GMT 2024

Total time taken to generate the page: 0.05328 seconds