1
protohobo
ADD NEW BLOCK - PHP not working
  • 2005/2/14 23:33

  • protohobo

  • Just popping in

  • Posts: 6

  • Since: 2005/2/13


Hi

I am trying to add a new block that contains PHP in it. For some reason the PHP script does not work.

It is a very simple script.

I of course select PHP from the menu.

I can copy and paste that same php into a .php file on the same server and it works fine.

can anyone think of what would cause PHP to not work when added via the ADD NEW BLOCK function?

thanks

2
Bassman
Re: ADD NEW BLOCK - PHP not working
  • 2005/2/14 23:52

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Make sure you leave the opening and closing tags out.

3
protohobo
Re: ADD NEW BLOCK - PHP not working
  • 2005/2/15 1:04

  • protohobo

  • Just popping in

  • Posts: 6

  • Since: 2005/2/13


heh.. that was it!
thanks

4
JMorris
Re: ADD NEW BLOCK - PHP not working
  • 2005/2/15 1:07

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Actually, I have had better luck without the tags. For instance:

This snippit works:
include 'http://x.x.x.x/closings/webclose.htm';


However, this does not:
include('http://x.x.x.x/closings/webclose.htm'); ?>


I've had both ways work and not work. Usually, without the tags seems to work more often, but not always.

To be completely honest, it really just seems buggy to me, but I don't know enough about php yet to even begin to propose a solution.

Login

Who's Online

279 user(s) are online (191 user(s) are browsing Support Forums)


Members: 1


Guests: 278


Runeher2,

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