ssimons Posted March 31, 2008 Share Posted March 31, 2008 Hey guys, I've been using a really basic script for about three years now, but I moved servers and now it's not working for me. <?php if ($id != "") { @include $id . ".html"; } else { include "news.html"; } ?> It's easy, and it's always worked for the basic websites that I work with. I recently moved servers from UZIPP.com to Eleven2.com and now the script isn't working on a site I'm working on, but works when I upload the site to an entirely different server. Can anyone suggest some better code to use here? I'm by no means a programmer, I can read PHP but writing it is far from my specialty. I'm in a bit of a rush on this one (which is why I'm posting at 12:46am) so any help is greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/98774-basic-script-works-but-doesnt-work/ Share on other sites More sharing options...
getshahidonline Posted March 31, 2008 Share Posted March 31, 2008 <?php if ($id != "") { @include $id . ".html"; } else { include "news.html"; } ?> //solution// <?php if ($id != "") { include ($id . ".html"); } else { include "news.html"; } ?> Link to comment https://forums.phpfreaks.com/topic/98774-basic-script-works-but-doesnt-work/#findComment-505442 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.