1
Shelia
php include in block
  • 2004/1/9 0:54

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


I am not sure how to go about doing this.... I have a php file that I want to include in a block. I've tried making a php custom block with different include statements

1. include("/home/xxxxx/public_html/xoops/file.php");

2. include("file.php");

3. include ("http://xxxx.com/xoops/file.php")

I'm lost! I checked the file path and its correct. I didn't include <?php or the closing tag.

Help please!

2
NitroFoO
Re: php include in block
  • 2004/1/9 2:53

  • NitroFoO

  • Documentation Writer

  • Posts: 76

  • Since: 2002/1/26


I'm not sure about the includes, but won't it be easier just adding the actual PHP Script into the block itself? And with always, double check to see that the content type is set at PHP.

Sorry I couldn't help you on the includes though.

3
CBlue
Re: php include in block

It should be this:

include('file.php');

Single quotes not double ones. Save the block as php after. If it still won't appear then there's something in the file.php that's the problem.

4
NitroFoO
Re: php include in block
  • 2004/1/9 5:49

  • NitroFoO

  • Documentation Writer

  • Posts: 76

  • Since: 2002/1/26


Quote:

CBlue wrote:
It should be this:

include('file.php');

Single quotes not double ones.


Woa! How did I miss that? Lol, so much for me and PHP.. i overlooked that.

That probably is a good sign I need my sleep.

Login

Who's Online

126 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 126


more...

Donat-O-Meter

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

Latest GitHub Commits