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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.