Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 04:42 pm EST

Geeklog Forums

access to ~lib-custom.php from center block


Status: offline

GrepZen

Forum User
Newbie
Registered: 12/08/04
Posts: 2
I've configured GL to allow PHP in centerblocks
entering
Text Formatted Code
phpinfo();
 
will yield expected results.
in the lib-custom.php, I have a simple bit of code:
Text Formatted Code
//      Hello World
function phpblock_hw()
{
        return 'Greetings Earth!';
}
 


calling it in the statig block via:
Text Formatted Code
phpblock_hw();
 

yields blank page, no errors (displayed)

===========

I've searched online for documentation relative to this. Most of it seems to imply this should work. --But does so in a way that insinuates that there are version differences. (I'm on GL v1.3.10)

any pointers to where Ii should be reading would be great --thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by GrepZen: Most of it seems to imply this should work.

Yes, it should work.

So you have to find out what's going wrong. Try switching on error_reporting in php.ini (if you have access to it) or add some debugging statements, etc.

bye, Dirk
 Quote

All times are EST. The time is now 04:42 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content