1
theswing
Adding PHP script to custom block
  • 2005/3/17 1:30

  • theswing

  • Just popping in

  • Posts: 12

  • Since: 2005/3/4 4


I want to include a PHP script in a custom block.

When I paste the script into the block editor, it doesn't work - no errors, but it just doesn't work.

I tried selecting php script, and that didn't work.

I then tried selecting html and using an include statement - that didn't work.

When I call the script directly form my browser, it works just fine.

What am I doing wrong?

Thank you.

John

2
Bassman
Re: Adding PHP script to custom block
  • 2005/3/17 2:42

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Try removing the tags from your script, and select php as block type.

3
theswing
Re: Adding PHP script to custom block
  • 2005/3/17 4:49

  • theswing

  • Just popping in

  • Posts: 12

  • Since: 2005/3/4 4


Thank you Bassman.

When I did that, the page would not load at all.

I found a work around however, I created a custom block, then used iframe to load the script.

Thanks for your assistance, and I certainly welcome any other ideas.

Login

Who's Online

319 user(s) are online (221 user(s) are browsing Support Forums)


Members: 0


Guests: 319


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