User Functions


There are no upcoming events

What's New

Stories last 2 weeks

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Friday, October 09 2015 @ 08:01 PM EDT

 Forum Index > Extensions > PHP Blocks New Topic Post Reply
 access to ~lib-custom.php from center block
 12/23/04 01:32PM (Read 1874 times)  

Status: offline

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

calling it in the statig block via:
PHP Formatted Code

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

Profile Email
 12/29/04 11:12AM  

Status: offline

Registered: 01/12/02
Posts: 13072
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

Profile Email Website
Content generated in: 1.09 seconds
New Topic Post Reply

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