-- As I said, just do that for POST, COOKIE, SESSION etc. Also, you can change the order so that POST has more weight than get (POST variables overwrite GET variables.) by simply doing the POST after the GET:)
Do this in one file and include it in the top of every page. (If you have a config file, do it there, so you don't have to go and include it throughout your entire site)
This is an easy fix for doing what you want.
-goat
Re:Still re-coding for register_global_variables..
on
PHP 5 Beta 1
·
· Score: 1, Informative
if you have a huge site, doing that is a quite a tedious job.
If you want a quick fix. Do the following for all of the variable arrays.
--
foreach( $HTTP_GET_VARS as $key => $value )
{
$$key = $value;
}
--
As I said, just do that for POST, COOKIE, SESSION etc. Also, you can change the order so that POST has more weight than get (POST variables overwrite GET variables.) by simply doing the POST after the GET:)
Do this in one file and include it in the top of every page. (If you have a config file, do it there, so you don't have to go and include it throughout your entire site)
This is an easy fix for doing what you want.
-goat
Re:Requires Microsoft Visual C++
on
PHP 5 Beta 1
·
· Score: 0
"Due to issues surrounding the MySQL 4.0 license, the MySQL are no longer bundled with PHP. For more information on these licensing changes, please refer to the MySQL Licensing Policy."
I am going to assume this will be addressed and fixed by the time php5 releases... But that is rediculous.
Does anybody know how to add the support for mysql?
oh sure, make me look like a dumbass.
Thanks, didn't know that one.
ahhh... It is a hassle, I know... but this is why I have both :)
;)
Actually, all 3. Windows, Linux and OS X
sonova, selected something wrong. ;)
:)
---
if you have a huge site, doing that is a quite a tedious job.
If you want a quick fix. Do the following for all of the variable arrays.
--
foreach( $HTTP_GET_VARS as $key => $value )
{
$$key = $value;
}
--
As I said, just do that for POST, COOKIE, SESSION etc. Also, you can change the order so that POST has more weight than get (POST variables overwrite GET variables.) by simply doing the POST after the GET
Do this in one file and include it in the top of every page. (If you have a config file, do it there, so you don't have to go and include it throughout your entire site)
This is an easy fix for doing what you want.
-goat
if you have a huge site, doing that is a quite a tedious job. If you want a quick fix. Do the following for all of the variable arrays. -- foreach( $HTTP_GET_VARS as $key => $value ) { $$key = $value; } -- As I said, just do that for POST, COOKIE, SESSION etc. Also, you can change the order so that POST has more weight than get (POST variables overwrite GET variables.) by simply doing the POST after the GET :)
Do this in one file and include it in the top of every page. (If you have a config file, do it there, so you don't have to go and include it throughout your entire site)
This is an easy fix for doing what you want.
-goat
It is all free in linux ;)
yeah, I have both php4 and 5 running... just to see how 5 is ;) .php5