Re: Include Files in HTML

From: Date: Sun, 06 Sep 2009 11:47:52 +0000
Subject: Re: Include Files in HTML
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-297743@lists.php.net to get a copy of this message
On Fri, 2009-09-04 at 18:21 -0500, phphelp -- kbk wrote: > On Sep 4, 2009, at 5:03 PM, sono-io@fannullone.us wrote: > > >> Depends on what you are including. The only tags that can be > >> inside the > >> head are <base>, <link>, <meta>, <script>, <style>, and > >> <title>. > >> Everything else is either body or prologue. > > > > I meant PHP includes like this one: > > <?php @include_once("/home/passwords/login.php"); ?> > > We know what you mean. Read the responses more carefully, as they are > telling you what you need to know. > > For simplification: The INCLUDE commands put the contents of the > INCLUDed file into this file, just as if as you had typed it in there. > > Ken > It's good to remember that PHP isn't inserted into HTML, but the other way round. PHP can output HTML, but is often used to output many other formats, from images to xml to documents. Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#297743) next »