GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php 4.3.4 help with passing parameters (https://gfy.com/showthread.php?t=234153)

queer 02-10-2004 04:43 PM

php 4.3.4 help with passing parameters
 
Help!
My server just got upgrated from php 4.3.3 to 4.3.4.
I always pass parameters like this :

somefile.php?a=123&b=456

Now this dont work anymore, some kind of security setting in php.ini?

If so, please let me know what to change in the php.ini file, to make me able to pass parameters this way in php 4.3.4

Most appreciated if someone knows this matter... :helpme

PurrrsianPussyKat 02-10-2004 04:45 PM

You need to set register_globals=on

queer 02-10-2004 04:50 PM

Ok cool. I just tried, didnt work yet, do I need to restart the server/php?

Dopy 02-10-2004 04:51 PM

It would be a much better idea to read this. Of course thats if this is the problem.


http://php.benscom.com/manual/en/sec...terglobals.php

Dopy 02-10-2004 04:52 PM

Ok cool. I just tried, didnt work yet, do I need to restart the server/php?



You need to re-start PHP

spritian 02-10-2004 04:53 PM

actually, turning registered globals on is a bad idea... you can get post variables by doing the following:

example: test.php?action=test

the value for action can be retrieved as $_GET[action]

Alky 02-10-2004 04:53 PM

those variables passed are in the _GET array

so $a = $_GET["a"];

Andy 02-10-2004 04:53 PM

hmm .. I think it was on older php but maybe you need to extract HTTP_GET_VARS ?

queer 02-10-2004 04:56 PM

Quote:

Originally posted by spritian
actually, turning registered globals on is a bad idea... you can get post variables by doing the following:

example: test.php?action=test

the value for action can be retrieved as $_GET[action]

this works fine!

Thank you all :thumbsup


All times are GMT -7. The time now is 04:13 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123