PHP dropping _POST?

software development


Okay, now I’m baffled. Two tests;
(info is a softlink to info.php)

First one uses my custom version of PHP5. Second one uses the DH version of PHP5.

Hit submit at the top (test2) and you’ll notice something very odd about the $_POST variable in the first example: it’s not there!

I’m completely baffled by this. Anybody else run into any similar problems? No errors in the error log and my .htaccess file is setup no differently for either one:

[quote]Action gpcentre-php /cgi-bin/php.cgi
Action info-php /cgi-system/php5.cgi

<Files “info”>
SetHandler info-php

AddHandler gpcentre-php .php .pcgi
AddType application/x-httpd-php-source .sphp .phps[/quote]


I can’t imagine why it shouldn’t be working, but I wrote this little script to check for form variables if you think it might be useful:

header(“Content-Type: text/html;charset=UTF-8”);

Display Form Variables

Display Form Variables

<?php $vars = (count($_POST)) ? $_POST : $_GET; foreach($vars as $key=>$value) { print " \n"; print " \n"; print " \n"; print " \n"; } ?>
Name Value
[/code]--------------- Simon Jessey [url=][b]Keystone Websites[/b][/url] | [url=][b]si-blog[/b][/url]


Thanks for the script, but definatly not needed. phpinfo() tells you everything up front w/out having to create your own foreach loop to read _POST or _GET.

But thanks for trying. I’m quite puzzled by this, but can’t say this is something new. I don’t recall seeing this before, but odly I do recall something similar, but unable to remember if it is the same thing or not.


I found out the problem. It seems to be releated to the java-bridge extension, when the bridge is turned off!

When I start up the java-bridge, everything works. Very odd and I’ve already submitted this to bridge dev(s) to have a look at. So in the mean time, I’ve installed a non-java version of PHP and it works!


That’s totally bizarre!

Simon Jessey
Keystone Websites | si-blog