Anyone know about PHP?
#1

I'm learning it from a book, but the book is 10 years old so I guess this is one of the occassional problems I'll find with it. Here's the code:

Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml1" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<title>Predefined Variables</title>
</head>
<body>
<?php

# Script 1.6 - predefined.php
# Created by Sam
# Created April 6, 2013

// Echo the script name.
echo "You are running the file <b> $PHP_SELF </b>.<br /><br />\n";

// Echo the user's information.
echo 'Your are viewing this page using:<br /><b>', $HTTP_USER_AGENT, '</b><br />from the IP address ', $_REMOTE_ADDR;
?>
</body>
</html>
Basically the location comes up as . and the user PC details and IP don't come up...
Reply


Messages In This Thread
Anyone know about PHP? - by Coltmaster - 07.04.2013, 22:28
Respuesta: Anyone know about PHP? - by OPremium - 07.04.2013, 22:46
Re: Anyone know about PHP? - by Pizzy - 07.04.2013, 22:48
Re: Anyone know about PHP? - by Coltmaster - 07.04.2013, 23:28
Re: Anyone know about PHP? - by Pizzy - 07.04.2013, 23:59
Re: Anyone know about PHP? - by Coltmaster - 08.04.2013, 00:11
Re: Anyone know about PHP? - by spacemud - 08.04.2013, 00:26
Re: Anyone know about PHP? - by Coltmaster - 08.04.2013, 00:41
Re: Anyone know about PHP? - by Sinner - 08.04.2013, 09:44
Re: Anyone know about PHP? - by InfiniTy. - 08.04.2013, 10:34

Forum Jump:


Users browsing this thread: 2 Guest(s)