1
maxima
How do I include a page within a block
  • 2006/8/18 1:45

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I want to include a page within a block.
I have tried the standard method
<?include('file.htm')?>
and I get an empty block using the HTML content type and nothing at all with PHP content type.

How can this be done

2
maxima
Re: How do I include a page within a block
  • 2006/8/18 14:02

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


So is it possible to do page include within a block?

3
McNaz
Re: How do I include a page within a block
  • 2006/8/18 15:29

  • McNaz

  • Just can't stay away

  • Posts: 574

  • Since: 2003/4/21


Try it with content type PHP but without the <? ?>

You might need to specify the file's full path as well.

include('/home/mydir/public_html/myfile.php');


I also suspect that the include instruction requires a php file and not an html file. I could be wrong on this second one.

HTH

4
maxima
Re: How do I include a page within a block
  • 2006/8/18 21:25

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


Thanks. It was the tags that were the problem.

Login

Who's Online

88 user(s) are online (41 user(s) are browsing Support Forums)


Members: 0


Guests: 88


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits