farib | comprend pas
Code :
- ; This file is different from the php.ini-dist file in the fact that it features
- ; different values for several directives, in order to improve performance, while
- ; possibly breaking compatibility with the standard out-of-the-box behavior of
- ; PHP 3. Please make sure you read what's different, and modify your scripts
- ; accordingly, if you decide to use this file instead.
- ;
- ; - register_globals = Off [Security, Performance]
- register_globals = On
- ; Global variables are no longer registered for input data (POST, GET, cookies,
- ; environment and other server variables). Instead of using $foo, you must use
- ; you can use $_REQUEST["foo"] (includes any variable that arrives through the
- ; request, namely, POST, GET and cookie variables), or use one of the specific
- ; $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending
- ; on where the input originates. Also, you can look at the
- ; import_request_variables() function.
- ; Note that register_globals is going to be depracated (i.e., turned off by
- ; default) in the next version of PHP, because it often leads to security bugs.
- ; Read http://php.net/manual/en/security.registerglobals.php for further
- ; information.
|
Code :
- <html>
- <head>
- <title>f</title>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <meta name="GENERATOR" content="Quanta Plus">
- </head>
- <body>
- <form action="truc.php" method="post">
- <input type="text" name="truc">
- <input type="submit">
- </form>
- </body>
- </html>
|
Code :
- [Thu Jul 10 11:27:05 2003] [error] PHP Notice: Undefined variable: truc in /home/farib/public_html/truc.php on line 2
|
[email] Message édité par farib le 10-07-2003 à 11:33:25
|