Jump to content

PHP $_GET, $_POST and $_REQUEST not being populated


Recommended Posts

I inherited an xp machine with xitami/pro server running on it and installed php 5.2.17 as cgi because I thought I might need the VC6 version.


PHP works and the php info shows as it should. When I do www.domain.com/test.php?x=y&z=testthe $_GET is not being populated. The $_REQUEST variable is not being populated either. If I post it in a form and post it, the $_POST is empty as is the $_REQUEST. if I loop through the $_SERVERvariables and display them on a get, the QUERY_STRING is populated with the get variables.


When i do a print_r on any of the variables, it is empty. I get: Array ( ) 1


I then upgraded to PHP 5.4 and the same thing.


What is the problem? I am at a loss and don't know what else to try.

I think the issue is that it was installed as cgi and I was using php.exe instead of php-cgi.exe.  I changed it to that in the filter, but now I am getting access denied.  I tried changing all the permissions on the PHP directory to full control, but that did not help.  Any idea on how to figure out what is causing this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.