1
basil
Custom Block using PHP Include
  • 2006/12/27 2:55

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


Hi
I created a custom block, with Content type PHP Script.

I wanted to use a PHP include, and it wouldn't work. Itried a simple echo, and it wouldn't work either.

When I tried PHP debug mode it returned this error:

Parse error: parse error, unexpected '<' in /var/www/html/xoops/class/xoopsblock.php(146) : eval()'d code on line 1

What do I need to do to make the script run within the block?

Basil

This what I tried to run:

echo "test";

?>

2
irmtfan
Re: Custom Block using PHP Include
  • 2006/12/27 4:43

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


if you set block on php you should not write php tags
eg: just write

echo "test";

Login

Who's Online

321 user(s) are online (267 user(s) are browsing Support Forums)


Members: 1


Guests: 320


Harald0123,

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