Hello,
I have a page that get's hit a lot from search engines for a one my targeted keywords.
Unfortunately, this keyword gets frequently misspelled.
I'd like to open up my home page in another file, search and replace the normal spelling with the common misspelling, and then have the entire page displayed... now identical to the first file, but with the keyword spelled differently.
Here's what I've got:
<?
$file = "filename.php";
$link = fopen($file, "r");
$contents = fread($link, filesize($file));
fclose($link);
// search and replace would go here...
echo $contents;
?>
This works, but all of my php code in this page is being displyed as plain text... it's not getting "parsed".
Anyway around this? Thanks in Advance.
Confused in Kansas,
Mark