include and Get not working on index

Posted by diego on Stack Overflow See other posts from Stack Overflow or by diego
Published on 2010-05-27T22:47:20Z Indexed on 2010/05/27 22:51 UTC
Read the original article Hit count: 162

Filed under:
|
|
|

I have a problem with my index.php, i have this small script that decides what content to deliver

        <?php $clase = $_GET['clase'];
if ($clase == empresa) {include ("empresa.php");}
elseif ($clase == productos) {include("productos.php");}
else {include ($_SERVER['DOCUMENT_ROOT']."/inicio.html"); }
?>

it works when i go to www.mysite.com/index.php

but when i go to www.mysite.com it doesnt and i cant just figure our why.

© Stack Overflow or respective owner

Related posts about php

Related posts about include