Page 2 of 2

Posted: Tue Sep 21, 2004 9:48 pm
by Daemon_B
Sorry, I was just using the Quick reply, Thankyou so much for the link, ill run threw it and if I have questions ill return and ask properally...

Posted: Tue Sep 21, 2004 10:02 pm
by Daemon_B
What is EOF?

Posted: Tue Sep 21, 2004 10:03 pm
by feyd
end of file.

Posted: Fri Sep 24, 2004 12:15 am
by Daemon_B
Hello,

I ended up just using str_replace and ob_start to create a buffer for a string. In short, I have a config.php file with my functions...

Code: Select all

function definition($buffer)
{
  $words = array("Microsoft", "french", "fries");
  $words_link = array("<a href=define.php?word=Microsoft>Microsoft</a>", "<a href=define.php?define=french>french</a>", "fries");
  return (str_replace($words, $words_link, $buffer));
}
Then in my index i call the function with op_start while it loads the file into the buffer

Code: Select all

ob_start("definition");  include 'includes/idx_nav.php'; ob_end_flush();
Thankyou for your help peeps...if you read my source and find something that might be better please post...Im alright with it..I use CSS to set the font and styles of course...but I dont like the idea about a buffer...cause of buffer overflows I know of...anyways, later days