|
Posted by dorayme on 07/10/07 03:58
In article <4693018a@news.orcon.net.nz>,
Alistair George <noname@xtra.co.nz> wrote:
> dorayme wrote:
> > In article <4692e1e3@news.orcon.net.nz>,
> > Alistair George <noname@xtra.co.nz> wrote:
> >
> >> Hi.
> >> I realise I can make a page .php and include a file thusly:
> >> <?php include("thehomebooked.html"); ?>
> >> But this method makes the file appear at the top of the current page,
> >> when I wanted it below all the buttons and so on at the top.
> >> Is there an alternative, or better way to insert a file into preferably
> >> an html page?
> >> Thanks,
> >> Alistair.
> >
> > Put your include exactly where you want it to be in the html. I
> > put my footer includes right at the bottom and my css does not
> > tell the footer to go anywhere but the bottom. I will put it
> > another way. When you put in the include, imagine you are putting
> > in the actual included text. Where the text would go, put the
> > include instruction (which basically is just a "please, php
> > engine, go fetch the following text and stick it in here - and I
> > mean literally here")
> >
> OK sounds good but I'm using WYSIWYG editor. A really nice editor, but
> its not html so you can only go to the page properties and edit the html
> there. Unfortunately, does not matter where you put the php script, it
> still overwrites the original page.
I don't know what you are doing then, sorry. All i can suggest is
this. Don't call the includes .html, they are just text files,
no? And, if you must, write your main html in your program and
open the resulting file in any plain text editor (not a WSIWIG
anything). And manually type in or paste the include instruction
as suggested above. Use .txt or .inc, it does not really matter
to name the includes. The includes instruction will cause the php
engine on the server to fetch the text file and stick it in palce
of the instruction... Best I can do here?
--
dorayme
Navigation:
[Reply to this message]
|