Zach Elfers
02-24-2003, 05:18 PM
I got a site with Tripod because they are free and you can use PHP. I made a file (index.php) and tested the PHP by using pyro's script from another thread. When I went to the page, it said "Parse error: parse error in index.php on line 1". What is wrong?
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Under Construction</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<?PHP
$ip = $REMOTE_ADDR;
mail("zachelfers@netscape.net", "Visitor $ip","Hello!\n\nA user with the IP address of $ip has visited your site.", "from: $ip\r\n");
echo ("Your IP address is $ip.");
?>
Under Construction
</body>
</html>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Under Construction</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<?PHP
$ip = $REMOTE_ADDR;
mail("zachelfers@netscape.net", "Visitor $ip","Hello!\n\nA user with the IP address of $ip has visited your site.", "from: $ip\r\n");
echo ("Your IP address is $ip.");
?>
Under Construction
</body>
</html>