Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Components + scripts
#1
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...n=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?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply


Messages In This Thread
Components + scripts - by Connie - 2013-04-17, 15:37:51
RE: Components + scripts - by shawn_a - 2013-04-18, 00:59:26



Users browsing this thread: 1 Guest(s)