pgRouting

Forum #22 - Topic #42 - Message List

HTTP_GET_VARS

I am trying to run the demo sp.phtml. After setting things up, I access the page and find that I am getting error messages in my httpd error_log:

PHP Notice: Undefined variable: HTTP_GET_VARS

The map is rendered, so I am accessing php_mapscript.so. I have other PHP mapscript, that work, but they do not use HTTP_GET_VARS. Is there an additional package I have to install with PHP, to use HTTP_GET_VARS?

Thanks Jim

  • Message #152

    Hi Jim,

    This is a PHP configuration/version issue, I think. Probably the use of $HTTP_GET_VARS is not enabled in your PHP installation.

    It's usually better to use $_GET, $_POST or $_REQUEST instead. Then it should work. If I have a time I will change the demo code.