Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
ThePiston
Worker
Worker



Joined: Dec 22, 2004
Posts: 135

PostPosted: Fri Jan 21, 2005 3:11 pm Reply with quote

Quote:
if (eregi("block-rdf.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}


That's the beginning code for the scrolling RSS feed. SHould it be "&SERVER script_name" or whatever?
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Jan 21, 2005 3:43 pm Reply with quote

$PHP_SELF is a global variable. To prove it, add this line ahead of the "if" statement
Code:
die('$PHP_SELF = '.$PHP_SELF);
It should say
Code:
block-rdf.php
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©