1
chipthamac
php inlude tag makes blank block
  • 2005/4/13 18:56

  • chipthamac

  • Just popping in

  • Posts: 28

  • Since: 2005/1/4 2


Hi,
I searched and checked FAQ's and couldn't find an answer.
here is my problem.
I create a custom block and insert the following code
Quote:


include 'http://www.everythingfunny.com/links/my_links.php';
?>


When I go to view the page with the new block, the block appears empty / blank.
I can go to the php page individually it works and shows the content.
Any help would be greatly appreciated, im banging my head against the wall over here.
-chip

2
m0nty
Re: php inlude tag makes blank block
  • 2005/4/13 19:13

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


if it's a custom block, then select php for the block type.. and then remove the php tags..

ie.

so it looks like:

<font size="1" face="Verdana">
include 
'http://www.everythingfunny.com/links/my_links.php';
font>

3
chipthamac
Re: php inlude tag makes blank block
  • 2005/4/13 19:32

  • chipthamac

  • Just popping in

  • Posts: 28

  • Since: 2005/1/4 2


Quote:

m0nty wrote:
if it's a custom block, then select php for the block type.. and then remove the php tags..

ie.

so it looks like:

<font size="1" face="Verdana">
include 
'http://www.everythingfunny.com/links/my_links.php';
font>

I went and tried that, and still get the same blank block. I also tried to do an iframe to get around this, and it comes up blank that way as well. I'm stumped.

4
m0nty
Re: php inlude tag makes blank block
  • 2005/4/13 19:46

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


hmmm, well i'm not quite sure what you're trying to achieve.

http://www.everythingfunny.com/links/my_links.php if u put that link into a browser the results don't look promising tho.

5
chipthamac
Re: php inlude tag makes blank block
  • 2005/4/13 20:16

  • chipthamac

  • Just popping in

  • Posts: 28

  • Since: 2005/1/4 2


I have a link trade script I am trying to implement, and I want to call the php script page into a block.
So, I was/am trying to use a php include of that page into the block.
When you click http://www.everythingfunny.com/links/my_links.php , I want what you see there, to show up in a custom block, and I don't understand why when I do a php include of that file from the block, the block is showing up empty.
Thanks...

6
m0nty
Re: php inlude tag makes blank block
  • 2005/4/13 20:20

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


is it on your server? could u try a relative path?

7
chipthamac
Re: php inlude tag makes blank block
  • 2005/4/13 20:40

  • chipthamac

  • Just popping in

  • Posts: 28

  • Since: 2005/1/4 2


That was it, dunno why I didn't think about it.
So to get it to work, I changed content type to php script and put the following code
Quote:
include 'links/my_links.php';

and that worked.
Now to edit the script itself so I can get it to appear the way I would like.
Thanks m0nty for you help!

Login

Who's Online

390 user(s) are online (311 user(s) are browsing Support Forums)


Members: 0


Guests: 390


more...

Donat-O-Meter

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

Latest GitHub Commits