WAMP not displaying php pages
Posted by: yba (---.static.nsw.bigpond.net.au)
Date: May 08, 2007 05:17AM

All of a sudden WAMP has started to display the php code in a browser window as opposed to processing the code.

I have uninstalled and reinstalled and it is still doing it.

Any ideas on how to rectify?

Cheers

Re: WAMP not displaying php pages
Posted by: roms (---.fbx.proxad.net)
Date: May 08, 2007 09:26AM

use <?php and not <?



Romain

Re: WAMP not displaying php pages
Posted by: hugohugo (---.126.29.14.ip.onderwijs.casematelecom.nl)
Date: May 11, 2007 11:19AM

Hey..

Here is the same probleme.

This is my begin of my site:

<?
session_start();
include 'class_login.php';
$login = new loginclass();
if (isset($_GET['loguit']))
{
$login->logout();
}
$login->required_lvl = 8;
$login->startpage();
$level = $login->level;
$name = $login->name;
?>

i see:
logout(); } $login->required_lvl = 8; $login->startpage(); $level = $login->level; $name = $login->name; ?>

and if i make it <?php then i get this:
check_if_logged_in($_SESSION['name'],$_SESSION['control'])) { $this->set_url(); $this->logout(); } else { $this->getlevel(); $this->check_if_access_to_page(); } } else { $this->set_url(); $this->logout(); } } function login_check() ///zodat een al ingelogde user niet op de login pagina kan komen { if ($this->check_if_logged_in($_SESSION['name'],$_SESSION['control'])) { header("Location: ".$this->start_page.""winking smiley; } } function login($name,$pass) ///word uitgevoerd na username en pass submit. ect..........

Hope somewhan can help us!

Re: WAMP not displaying php pages
Posted by: dval (---.chrcitadelle.be)
Date: May 11, 2007 03:38PM

because ALL of your php tags must be <?php , also in the include file :
include 'class_login.php';

Re: WAMP not displaying php pages
Posted by: CyberSpatium (71.237.217.---)
Date: May 11, 2007 04:27PM

for more info on php tags read my manual


CyberSpatium
----------------------
WAMP English Forum Admin

Need help? Check out my WAMP User Manual/Guide here!

Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Web Development for Newbie's Blog

Sorry, only registered users may post in this forum.