Something wrong with Apache..
Posted by:
shyghar
(---.13-79-r.retail.telecomitalia.it)
hi,
i have a problem.
i installed wamp, create a database, write some .php page and i tryed to test my site..
something didn't work.
i click on "my project" section on "localhost" page and it gave me the php code and not the "result"
on the browser i read:
setContent("slogan", date("F j, Y, G:i a"
."L'Aquila, Abruzzo"
; if(!isset($_SESSION['PROVINCIA'])) { $provincia = new DBProvincia(); $provincia->setAllProvincia(); $provincia->setPagingResult(5); $_SESSION['PROVINCIA'] = $provincia; } else { $provincia = $_SESSION['PROVINCIA']; } $content = $provincia->renderSearchPage(); switch($state) { case "main": $loginTmpl = new Template("dtml/login_form.html"
; $basemenu = new Template("dtml/default_menu.html"
; $main->setContent("basemenu", $basemenu->get()); $main->setContent("utilmenu", $loginTmpl->get()); break; case "logged": $basemenu = new Template("dtml/logged_menu.html"
; $main->setContent("basemenu", $basemenu->get()); switch($_SESSION['user']['level']){ case 'u': break; case 'a': $adminmenu = new Template("dtml/admin_menu.html"
; $main->setContent("utilmenu", $adminmenu->get()); break; } break; } $main->setContent("body", $content); if(isset($_SESSION['error'])){ $main->setContent("footer", $_SESSION['error']); } $main->close(); ?>
this is the php code generated by my code.. but i want to see the page T___T
on my friend's linux pc it work..
someone know why i have this problem? i think is a apache problem but i don't know how can i resolve
waiting 4 reply ^^
i have vista home on my pc, Apache version 2.2.6, php version 5.2.5