Important Definition Script Needed, PLZ!!!
Moderator: General Moderators
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...
Then in my index i call the function with op_start while it loads the file into the buffer
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
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));
}Code: Select all
ob_start("definition"); include 'includes/idx_nav.php'; ob_end_flush();