PHP weirdness

Get help on web editors (Frontpage, Dreamweaver) and web languages (HTML, ASP, PHP).
Post Reply
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

PHP weirdness

Post 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...
Image
User avatar
Ron2K
Forum Technical Administrator
Posts: 9050
Joined: 04 Jul 2006, 16:45
Location: Upper Hutt, New Zealand
Contact:

Re: PHP weirdness

Post by Ron2K »

My first guess would be MIME type weirdness on your web server.
Kia kaha, Kia māia, Kia manawanui.
DarkRanger
Registered User
Posts: 8346
Joined: 10 May 2006, 02:00
Processor: Intel i5-3750
Motherboard: Gigabyte
Graphics card: nVidia GTX 550Ti
Memory: 8GB Jetram
Contact:

Re: PHP weirdness

Post by DarkRanger »

A simple restart of my machine fixed the problem. *sigh*
Image
Post Reply