1
LostGirl
php includes in xoops
  • 2004/2/20 12:32

  • LostGirl

  • Just popping in

  • Posts: 8

  • Since: 2004/1/26


I am trying to use a php include in one of my blocks, but it keeps showing up blank. I've used the content type as php, tried is as <?php include("zfeeder.php"); ?> and as just include("zfeeder.php");

I am baffled because it works here:
http://www.renaissance-girl.net/beta/xoops/html/newfeeds.php

This is the second time I have asked about using something other then what comes with xoops, I do like the cms the use management and being able to chose what user level sees what is the best.

Again thank you for your time.

2
Dave_L
Re: php includes in xoops
  • 2004/2/20 17:04

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


The second method is correct. Don't use the <?php ?> brackets, because they're automatically inserted when the content type is PHP.

Try turning on PHP debug.

Or raise the error reporting level within the block:
error_reporting(E_ALL);
include(
'zfeeder.php');

3
LostGirl
Re: php includes in xoops
  • 2004/2/20 18:52

  • LostGirl

  • Just popping in

  • Posts: 8

  • Since: 2004/1/26


Thanks for the error reporting snipit.

It is claiming there are no feeds, when I know there are feeds because it works on the link I posted before.

*groan*


Login

Who's Online

73 user(s) are online (49 user(s) are browsing Support Forums)


Members: 0


Guests: 73


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