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
#2
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
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)