I'm writing a bit of the code and I have parent php script that does include() and includes second script, here is snippet from my second code:
echo ($GLOBALS['key($_REQUEST)']);
I'm trying to grab a key($_REQUEST) from the parent and use it in child, but that doesn't work..
this is when I run script using command line:
mbp:digaweb alexus$ php findItemsByKeywords.php test PHP Notice: Undefined index: key($_REQUEST) in /Users/alexus/workspace/digaweb/findItemsByKeywords.php on line 3 PHP Stack trace: PHP 1. {main}() /Users/alexus/workspace/digaweb/findItemsByKeywords.php:0 mbp:digaweb alexus$
i heard that globals isn't recommended way also, but i don't know maybe it's ok...