PHP Include Problem

RazerHost

New member
I have server on EV1 servers and it seems I have some type of php problem....

When I use a PHP inclue tage to a direct page it works "Example"

<?php require("/domain.html"); ?>

Now this is the PHP inclue tage I use and it don't work on my server...

<?php if ($id == "") { include "forum/news.php"; } else { include "$id.php"; } ?>

http://birugames1.razerhost.com/main.php

here is the page "Page don't change"
http://birugames1.razerhost.com/main.php?id=animelist


This was Ev1 reply.......

4/9/2006 11:50:16 PM
rholec
Dear Goce Kosteski,

Includes are working with php files on your server, as http://birugames1.razerhost.com/test2.php shows. As we do not offer managed hosting, we cannot provide support for the php code in main.php.

#### Contents of test2.php
include "test.php";
?>
#### Contents of test.php
phpinfo();
?>
 
Top