Jump to content

Basic script works but doesn't work


ssimons

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.