[PHP] dynamically accessing arrays at variable indexes

2001-03-09 Thread Dale Robinson
Hi, I need to access array values at varying dimensions. What I want to do is something like this: $full_index = ["op"]["view"]; print ${"HTTP_GET_VARS" . $full_index}; but that doesnt work :( A messy solution would be: function return_array_value($index1, $index2) { if ($index2) {

Re: [PHP] solutions to disadvantages when register_globals is off

2001-01-21 Thread Dale Robinson
Thank for the extremely quick response, So setting error_reproting to E_ALL, and making sure you take heed of any "Undefined variable" notices, will allow you to use register_globals in safety? Regards Dale Robinson - Original Message - From: "Rasmus Lerdorf" &l

[PHP] solutions to disadvantages when register_globals is off

2001-01-21 Thread Dale Robinson
Everyone seems to recommend turning off register_globals, but accessing them through $HTTP_POST_VARS["var_name"], gets tedious. I haven't found a better solution (not to say there isn't one) than this small snippet. The idea is to turn off "register_globals", as I believe is heavily recommended