Es tut mir leid aber mein English ist besser dass mein Deutsch!
I created some PHP files (and placed into xampp/htdocs) but the browser reads them like simple text, even if I add a ".php" to the filename.
Danke fuer any info!
<?php lots_of_fancy_php_code_and_functions_and_stuff;
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Not very interesting, simple text</title>
</head>
<body>
<p>This is text and shall appear on the screen<BR>
just as plain text</p>
<?php echo "This is also text, but PHP is producing it";
?>
</body>
</html>
4) The browser is automatically putting a ".txt" extension on each of these simple test files. For example I have a file named "zz" but it shows up as "zz.txt".
and when I doubleclick on the filename in the browser, all of this gets displayed as is, as just text. It does not execute the php code and only show me the "Hello there world!" part (which is the kind of behaviour I'm of course after).
Users browsing this forum: No registered users and 192 guests