mainfile/ include/ block to display output FATAL ERROR

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   mainfile/ include/ block to display output FATAL ERROR
MrSandman
CZ Super Newbie
MrSandman has been a member for over 20 year's 20 Year Member
usa.gif florida.gif
Occupation: Website developer/designer + Chauffeur
Age: 53
Gender: Male
Fav. Sports Team: Chicago Bears (Sad but true...- cuz from Chicago!)
Status: Offline
Joined: Dec 16, 2003
0.01 posts per day
Posts: 58
Points: 5,833
 Yahoo Messenger  
I have a custom php scripts that parse searchengine referals into just the keywords

to make it work I add an "include" statement in my mainfile.php

what I am trying to do is display the output within a block

I get
Fatal error: Cannot redeclare extractkeywords3() (previously declared in /usr/www/users/fredk90/referer-keywords/lgf-search-Functions.php:2) in /usr/www/users/fredk90/referer-keywords/lgf-search-Functions.php on line 2

I understand what is happening - Does anyone know how to workaround this?

here is the output
[ Register or login to view links on this board.]

HERE IS THE BLOCK CODE I HAVE SO FAR that causes the error
<?php

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


ob_start();
include("/usr/www/users/fredk90/referer-keywords/show-refs-searchv2.php");
$output = ob_get_contents();
ob_end_clean();
$content = $output;

?>


HERE is what I add to the mainfile:
include('/usr/www/users/fredk90/referer-keywords/lgf-reflog-searchv2.php');


is there a workaround for redeclaring??????

To help this make sense I attached the scripts and there instructions if it helps ANYONE HELP ME!!!

I posted this in this forum because lastly if I remove the include line from mainfile and activate the block of course the output to the file will not change because the script doesnt get executed - and It turns my page all white!!!

I am using a codezwiz theme and also need to know how to mod the file "show-refs-searchv2.php" to use the themes css.......


Attached Files
staphlist2.zip (7.74 KB, Downloaded: 5240 Time(s))



_________________

..::: DoNt gO tO sLeEp - ThE SaNdMaN MiGhT KiLL YOU:::..
Back to top Reply with quote
#2   
MrSandman
CZ Super Newbie
MrSandman has been a member for over 20 year's 20 Year Member
usa.gif florida.gif
Occupation: Website developer/designer + Chauffeur
Age: 53
Gender: Male
Fav. Sports Team: Chicago Bears (Sad but true...- cuz from Chicago!)
Status: Offline
Joined: Dec 16, 2003
0.01 posts per day
Posts: 58
Points: 5,833
 Yahoo Messenger  
I tried using mod_rewrite and I get the page to come up as
[ Register or login to view links on this board. ]

is there any way to include that(technically non-existent) file within a block (not a module)??

I think using include on the same page that called the include to generate the output is not possible...... I have NO clue!!!!

I will keep trying until my hair falls out or someone helps me!

lol




_________________

..::: DoNt gO tO sLeEp - ThE SaNdMaN MiGhT KiLL YOU:::..
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