cant post!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dribeiro
Forum Newbie
Posts: 1
Joined: Wed May 22, 2002 5:13 pm

cant post!!

Post 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!!!!
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

how do you access the post-parameter?
User avatar
fatal
Forum Contributor
Posts: 118
Joined: Sat Apr 20, 2002 10:47 am
Location: East Coast

Post by fatal »

is phpNuke using $_POST? cause if so you have to updrade php, and edit your php.ini
User avatar
sam
Forum Contributor
Posts: 217
Joined: Thu Apr 18, 2002 11:11 pm
Location: Northern California
Contact:

Post 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
Post Reply