Page 1 of 1

PHP weirdness

Posted: 06 Oct 2010, 15:35
by DarkRanger
So I've started a revamp on our intraweb. This is the current index page...

Code: Select all

<html>
	<head>
    	<title>VCE Intraweb - Home</title>
        <link rel="shortcut icon" href="favicon.ico"/>
        <link type="text/css" href="style.css" rel="stylesheet"/>
    </head>
   	<body>
    	<div class="header"><img src="images/header.jpg"/></div>
        <?php echo "PHP ECHO TEXT";?>
    </body>
</html>
And the output, when I open it in a browser is this:

Code: Select all

<html> <head> <title>VCE Intraweb - Home</title> <link rel="shortcut icon" href="favicon.ico"/> <link type="text/css" href="style.css" rel="stylesheet"/> </head> <body> <div class="header"><img src="images/header.jpg"/></div> <?php echo "PHP ECHO TEXT";?> </body> </html>
The PHP server is running and all is fine...

Can anyone tell me why it's doing this and not echoing my actual page...

Re: PHP weirdness

Posted: 06 Oct 2010, 16:45
by Ron2K
My first guess would be MIME type weirdness on your web server.

Re: PHP weirdness

Posted: 07 Oct 2010, 09:18
by DarkRanger
A simple restart of my machine fixed the problem. *sigh*