07.04.2013, 23:28
Uh for this lesson I'm trying to use the default PHP variables not create my own yet.
So I changed it, well line 16 and now my site has an error. I only changed the file variable for now to make sure that is the one which was failing: http://phpwork.net78.net/predefined.php
So I changed it, well line 16 and now my site has an error. I only changed the file variable for now to make sure that is the one which was failing: http://phpwork.net78.net/predefined.php
Код:
<!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> $_SERVER['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>