httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Coby" <>
Subject Re: [users@httpd] http get vars problem!
Date Wed, 19 Mar 2003 22:06:00 GMT
> the problem is: i made this simple script in php,
> <? print "the var is: $test2"; ?>
> then i use this as the url
> http://mysite/test.php?test2=2
> the result is i was expecting would be something like
> the var is:2
> the result i get is
> the var is:

This is really a PHP problem, but hey, what they heck.

Try printing the value of $_GET["test2"].

>  what do i have to add to httpd.conf??
> the server is apache 1.3.27_1 php_mod is intalled and
> ssl_mod.

In your php.ini, turn register_globals ON.  This will put GET, POST, and
COOKIE vars into the global namespace.  There are security issues with this,
so please be sure you know what you are doing if this is for a site that
will see much traffic.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message