![]() |
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 |
You need to set register_globals=on
|
Ok cool. I just tried, didnt work yet, do I need to restart the server/php?
|
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 |
Ok cool. I just tried, didnt work yet, do I need to restart the server/php?
You need to re-start PHP |
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] |
those variables passed are in the _GET array
so $a = $_GET["a"]; |
hmm .. I think it was on older php but maybe you need to extract HTTP_GET_VARS ?
|
Quote:
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