Page 1 of 1

cant post!!

Posted: Wed May 22, 2002 5:13 pm
by dribeiro
:D hi,

im trying to install the latest version of the php-nuke portal in my linux machine but i discovered that my recently installed php4.06 cannot read the POSTed variables from an tutorial html/pgp file, the php simply returns a "" value to any POSTed variables like it never was POSTed, what i can do ? the problem is in the apache server or in the php installation ?

help me, please!!!!

Posted: Wed May 22, 2002 5:14 pm
by volka
how do you access the post-parameter?

Posted: Wed May 22, 2002 5:27 pm
by fatal
is phpNuke using $_POST? cause if so you have to updrade php, and edit your php.ini

Posted: Wed May 22, 2002 6:15 pm
by sam
Or A quike fix that might work (if $_POST isn't being used as global within functions) not to secure though:

At the top of your one included file that is included in almost every page (ie: connect.php or something) add the following:

Code: Select all

<?php
$_POST = $HTTP_POST_VARS;
$_GET = $HTTP_GET_VARS;
?>
That might solve the problem, but be warned recent issues have arisen about falty buffers in php 4.1.1 and lower. I would recommend that you upgrade soon and then this fix will not be needed.

Cheers Sam