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 #184217 is a reply to message #184215] Sun, 15 December 2013 19:34 Go to previous messageGo to previous message
Moon Elf is currently offline  Moon Elf
Messages: 6
Registered: December 2013
Karma:
Junior Member
On 2013-12-15, Christoph Michael Becker <cmbecker69(at)arcor(dot)de> wrote:
> 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.
>

Indeed, you can write include "filename" or include 'filename' with a ; at the
end but your parser does not accept closures as in JS e.g. new.

ME
--
Member of the DR rogue circle.
Search and you will find.
[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 09:54:09 GMT 2024

Total time taken to generate the page: 0.04373 seconds