GetSimple Support Forum
Components + scripts - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Components + scripts (/showthread.php?tid=4648)



Components + scripts - Connie - 2013-04-17

A very interesting siutation came up in a post in the "german corner" and needs some clearance.

See here: http://get-simple.info/forums/showthread.php?tid=4643&action=lastpost

The question was how to include a script in a component:

PHP Code:
<?php include('shoutbox/shoutbox.inc.php'); ?>

brings error: "You don't have permission to access /admin/components.php on this server."

PHP Code:
<?php include_once('shoutbox/shoutbox.inc.php'); ?>

works. So we have the question: what is the difference between "include" and "include_once" concerning the permissions?

Can somebody enlighten us?


RE: Components + scripts - shawn_a - 2013-04-18

No clue, probably has something to do with what is in the script, or there was some security module blocking it on the web server. Or a bad symblink