I recently just moved my site to a new server and it seems this server is running a newer version of php. I am using urls like index.php?goto=pagename With the following code in the index, but when you go to any url with that extension, it just shows the home page doent open the page inside the php frame, Can some one please help me fix this //Run the page of selection if ($goto != "") { //Pull in the html page... $goto = strtolower($goto); $goto = str_replace('/','',$goto); $goto = str_replace("\\",'',$goto); $goto = str_replace('php','',$goto); $goto = str_replace('html','',$goto); PHP:
This is because in the more updated versions of PHP, register_globals have been turned off to reduce security issues. Add this at the top of your file. $goto = $_GET['goto']; PHP: