Hi,
PHP 5 has now taken the market and most of the web hosting providers have PHP 5 installed on the servers.
Now many developers are still using PHP 4 for development, but when they move the application to a sever which has PHP 5 installed they face the problem that form variables are no more accessiable by just writting $name_of_field, now they have to change through out the to replace $name_of_field with $_REQUEST["name_of_field"], a quick solution to this is: -
Include the follwing code in a common include file: -
<?
if (isset($_REQUEST)) {
while (list ($k,$v) = each($_REQUEST)) {
${$k} = $v;
}
}
?>
Hope this is of some good to few.........
Cheers,
~Maneet
PHP 5 has now taken the market and most of the web hosting providers have PHP 5 installed on the servers.
Now many developers are still using PHP 4 for development, but when they move the application to a sever which has PHP 5 installed they face the problem that form variables are no more accessiable by just writting $name_of_field, now they have to change through out the to replace $name_of_field with $_REQUEST["name_of_field"], a quick solution to this is: -
Include the follwing code in a common include file: -
<?
if (isset($_REQUEST)) {
while (list ($k,$v) = each($_REQUEST)) {
${$k} = $v;
}
}
?>
Hope this is of some good to few.........
Cheers,
~Maneet