On my index.php I have codes like:
<?php include_once ('header.inc'); ?> // it's working in localhost and server
<?php
if ($cmd == null and $mod == null){
include ('mainpage.inc'); // it's working in localhost and server
}
if ($cmd == 1) {
include ('page1.inc'); // it's working in localhost but NOT on server
}
if ($cmd == 2) {
include ('page2.inc'); // it's working in localhost but NOT on server
}
?>
<?php include_once ('footer.inc'); ?> // it's working in localhost and server
When I try to go on index.php?cmd=1 in address bar stand that address, but browser load allways index.php on server. In localhost everithing work fine.
How to solve this problem?
Thanx