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 #184215 is a reply to message #184213] Sun, 15 December 2013 18:34 Go to previous messageGo to previous message
Christoph Michael Bec is currently offline  Christoph Michael Bec
Messages: 207
Registered: June 2013
Karma:
Senior Member
Fyndhorn Elder wrote:

> 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')

include is not a function, but a statement, so the parentheses are not
required.

--
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: Mon Sep 16 19:59:16 GMT 2024

Total time taken to generate the page: 0.10101 seconds