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 #184213 is a reply to message #184111] Sun, 15 December 2013 17:42 Go to previous messageGo to previous message
Fyndhorn Elder is currently offline  Fyndhorn Elder
Messages: 3
Registered: December 2013
Karma:
Junior Member
richard <noreply(at)example(dot)com> writes:

> <?php inlcude "page.html" ?>
>
> Should the include page be a complete page with headers or not?

Look at the source code in your browser (right-click or CTRL-click on a mac mouse), select the view source menuitem. You'll see what is included on the output of your PHP script.

>
> The validator throws a hissy fit when doing so.
>

The correct syntax is include("string") or include('string literal')

> If not, then how does one properly include the stuff for that page?
> Such as CSS or javascript.
>

Again, watch the output in the source view of your browser.

HTH,
FE

--
Time heals.
My blog : https://thediaryofelvishhealer.blogger.com
[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: Sun Nov 03 13:17:19 GMT 2024

Total time taken to generate the page: 0.04088 seconds