Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #12257

Re: when incuding a page

Newsgroups comp.lang.php
From Moon Elf <moonelf@moonelfsystem.net>
Subject Re: when incuding a page
References <1uhcw9wjxnuap$.oya5fj4d12fv.dlg@40tude.net> <m2situui2o.fsf@caradhras.lan> <52adf632$0$6549$9b4e6d93@newsspool4.arcor-online.net>
Message-ID <slrnlas10u.nmd.moonelf@sigtrans.org> (permalink)
Date 2013-12-15 19:34 +0000
Organization SunSITE.dk - Supporting Open source

Show all headers | View raw


On 2013-12-15, Christoph Michael Becker <cmbecker69@arcor.de> wrote:
> Fyndhorn Elder wrote:
>
>> richard <noreply@example.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. 

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

when incuding a page richard <noreply@example.com> - 2013-12-06 12:05 -0500
  Re: when incuding a page "J.O. Aho" <user@example.net> - 2013-12-06 18:16 +0100
    Re: when incuding a page Dennis <nobody@nowhere.invalid> - 2013-12-06 12:29 -0500
  Re: when incuding a page "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2013-12-06 18:09 +0000
  Re: when incuding a page The Natural Philosopher <tnp@invalid.invalid> - 2013-12-06 19:33 +0000
  Re: when incuding a page Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-06 20:44 +0100
  Re: when incuding a page Richard Yates <richard@yatesguitar.com> - 2013-12-06 12:15 -0800
  Re: when incuding a page Scott Johnson <noonehome@chalupasworld.com> - 2013-12-06 13:35 -0800
  Re: when incuding a page Fyndhorn Elder <bubble@caradhras.lan> - 2013-12-15 17:42 +0000
    Re: when incuding a page Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-15 19:34 +0100
      Re: when incuding a page Moon Elf <moonelf@moonelfsystem.net> - 2013-12-15 19:34 +0000
        Re: when incuding a page Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-12-15 21:10 +0000
      Re: when incuding a page Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-20 18:57 +0100

csiph-web