Running external php files or snippets with starting session in Modx?

Posted by moogeek on Stack Overflow See other posts from Stack Overflow or by moogeek
Published on 2010-06-07T10:28:30Z Indexed on 2010/06/07 10:32 UTC
Read the original article Hit count: 241

Filed under:
|

I want to include an external php script or modx snippet to the index.php but it causes the blank screen instead (and no document parser errors). Probably the problem is that this script i want to include contains starting session functions and set_include_path function that might somehow conflict with Modx parser.. I tried to use the Modx API but it doesn't seem to work. I use Modx 0.9.2.6 yet.. How can I overcome the issue? My script checks the session and database if the user is logged-in on the site (logging system is not modx-based) and then prints the menu depends on the user privileges...

© Stack Overflow or respective owner

Related posts about php

Related posts about modx