Senad
12-26-2006, 09:28 AM
I'm trying to make my site work again like it did before. Basically the index page would use the include function to add content so instead of editing each page when a link change occurred I would just edit the index.php file. Unfortunetly after turning register_globals=off for security reasons and upgrading to php5 (I can't tell what the reason is) my code is not working anymore.
<?php
$default = "welcome";
if($page == ""){$page = $default;}
include("./$page.php")
?>
I have no idea why this is not working anymore as it shouldn't affect the site.
The current effect is that it is loading the main site if I click on any of the tutorial links instead of loading the content in the middle (The site can be seen at: www.pingpros.com. Thanks for your help!
<?php
$default = "welcome";
if($page == ""){$page = $default;}
include("./$page.php")
?>
I have no idea why this is not working anymore as it shouldn't affect the site.
The current effect is that it is loading the main site if I click on any of the tutorial links instead of loading the content in the middle (The site can be seen at: www.pingpros.com. Thanks for your help!
