Home page help module I made I get You can't access this fil

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Home page help module I made I get You can't access this fil
maypop
CZ Newbie
maypop has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Mar 23, 2005
0.00 posts per day
Posts: 1
Points: 145
   
OK, I made a module and it work great but when I try to put it as home I got this


You can't access this file directly...

so it work as long as it not in home but in home if doen't.


the index php is l I am using is this
if (!eregi("modules.php", $PHP_SELF)) {
  die ("You can't access this file directly...");
}
$index = 0;   // 0 : do not show right blocks - 1:show right blocks
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
OpenTable();
include("http://www.mysit.net/PCC/frontpage.html"); // <-- CHANGE THIS!
CloseTable();
include("footer.php");
   


any help out there for this


Back to top Reply with quote
#2   re: Home page help module I made I get You can't access this
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.70 posts per day
Posts: 5530
Points: 481,695
   
try changing the top part from $PHP_SELF, to $_SERVER['PHP_SELF']



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum