#22313 [Bgs]: PHP scripts don't get params from query string
| From: | J dot M dot Benitez at Computer dot org | Date: | Thu, 20 Feb 2003 14:34:33 +0000 |
| Subject: | #22313 [Bgs]: PHP scripts don't get params from query string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33736@lists.php.net to get a copy of this message | ||
ID: 22313
User updated by: J dot M dot Benitez at Computer dot org
Reported By: J dot M dot Benitez at Computer dot org
Status: Bogus
Bug Type: Apache2 related
Operating System: Linux 2.4.19+
PHP Version: 4.3.1
New Comment:
OK. So let it remain as "Bogus".
Previous Comments:
------------------------------------------------------------------------
[2003-02-20 08:27:17] sniper@php.net
Please leave this as 'Bogus' since this really wasn't
any bug. :)
------------------------------------------------------------------------
[2003-02-20 08:24:38] J dot M dot Benitez at Computer dot org
Thanks for the hint!
All right, by changing the setting of 'register_globals' to "On"
everything works as expected.
Trying to comply with your efforts to make PHP scripting more secure
and portable, I'm using $_GET to get query string params within
scripts.
Thanks again!
With this I set the bug report as "Closed".
------------------------------------------------------------------------
[2003-02-20 07:25:24] sniper@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
.
------------------------------------------------------------------------
[2003-02-20 04:46:30] J dot M dot Benitez at Computer dot org
The output for:
<?php var_dump($_GET); ?>
is
array(1) { ["param"]=> string(1) "3" }
And how did you setup PHP within httpd.conf ?
The following is php.conf at /etc/httpd/conf.d, which is include'd in
httpd.conf
-------
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php4_module modules/libphp4.so
#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
------
These lines are also added to httpd.conf:
----
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml
----
------------------------------------------------------------------------
[2003-02-19 21:43:48] sniper@php.net
What does this output:
<?php var_dump($_GET); ?>
And how did you setup PHP within httpd.conf ?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22313
--
Edit this bug report at http://bugs.php.net/?id=22313&edit=1