with // $step1 = str_replace('$theme', $theme, $contents); // Closes the file fclose($handle); // Creates a Template Array of where stuff should be located $array = array('{menu}', '{login}'); // Phrases the spasific arrays with there content "Menu" - phrasemenu function is called $phrase1 = str_replace($array[0], phrasemenu($theme), $step1); // Phrases the spasific arrays with there content "Login" - phraselogin function is called $phrase2 = str_replace($array[1], phraselogin($theme), $phrase1); ?>