PHP-Yes, HTML-No --- Why?



Hi All,

I have a tiny program:

<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd";>
<html>
<head>
<title>MyTitle</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body>


<?php
$host = $_SERVER['HTTP_HOST'];
$server = strtolower($host);

echo 'My variables<bg>';

echo("<br>Host: $host");
echo("<br>Server: $server");

?>
</body>
</html>

I upload it to my webserver as test.html and as test.php. Then I test them in my webbrowser. The test.html does not work, but the test.php does. Can someone tell me why?

Very confused
Lennart Björk
.



Relevant Pages

  • Re: PHP-Yes, HTML-No --- Why?
    ... I upload it to my webserver as test.html and as test.php. ... Then I test them in my webbrowser. ...
    (comp.lang.php)
  • Re: How to find what webserver a host is running
    ... You can try using HEAD. ... Server: SunONE WebServer 6.0 ... Client-Response-Num: 1 ... Server: Microsoft-IIS/6.0 ...
    (comp.unix.solaris)
  • Re: Document mangment in .net
    ... user will upload the document form here. ... uploaded from the client to the webserver server over a webservice. ... the user machine and database sitting on the webserver and webservices being ...
    (microsoft.public.dotnet.framework)
  • Re: WebClient Timeout Exception
    ... app needs to upload a file to a webserver. ... >> I have a problem with the WebClient and uploading a file to a web server. ... >> Writing a webservice method that takes an array of bytes ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Donna Lee
    ... Send those videos to me with www.yousendit.com and I'll upload them for you, ... Clif. ... > To me the crux is the head. ...
    (rec.music.makers.guitar.jazz)

Quantcast