Hello all,
I apologize in advance if this is not the correct topic for this question but i did not want to start up a new one.
I am having some issues with the scripts starting at script 1.5.
Up until this point everything was working fine. I have downloaded XAMPP, PHP Designer (as my IDE). Like i stated earlier whenever i try to run script 1.5 i get the output that looks like this:
You are running the file:
$file.
\n"; ?>
This is my code (i left out the other two vars in the script as a test):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Predefined Variables</title>
</head>
<body>
<?php #Script 1.5 - predefined.php
$file = $_SERVER['SCRIPT_FILENAME'];
//print the name of this script
echo "<p>You are running the
file:<br /><b>$file</b>.</p>\n";
?>
</body>
</html>
Any ideas to what could possibly going wrong?
Thanks to anyone who can offer some advice.