cvs: phpweb / tut.php
| From: | James Cox | Date: | Sat, 29 Jun 2002 01:03:24 +0000 |
| Subject: | cvs: phpweb / tut.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-11040@lists.php.net to get a copy of this message | ||
imajes Fri Jun 28 21:03:24 2002 EDT
Modified files:
/phpweb tut.php
Log:
fix bug #17428.
Index: phpweb/tut.php
diff -u phpweb/tut.php:1.14 phpweb/tut.php:1.15
--- phpweb/tut.php:1.14 Fri May 24 15:16:11 2002
+++ phpweb/tut.php Fri Jun 28 21:03:19 2002
@@ -217,13 +217,19 @@
In this file you would have something like this:
</p>
-<?php example('Hi <?php echo $_POST["name"]; ?>.
-You are <?php echo $_POST["age"]; ?> years old.')?>
+<?php example('Hi <?php echo $name; ?>.
+You are <?php echo $age; ?> years old.')?>
<p>
It should be obvious what this does. There is nothing more to it.
The $name and $age variables are automatically set for you by PHP.
</p>
+
+<p>
+<b>NB:</b> Since PHP version 4.2.1, this functionality is disabled by default.
+We chose to do this because with careless coding, it becomes possible to cause
+security holes in PHP scripts. You can read more about this
+<a href="http://php.net/register.globals">here</a>.
<h2>What's next?</h2>