|
Posted by Rik on 01/31/07 18:07
Gunnar G <debian@comhem.se> wrote:
>>>> In foo.php I do (essentialy)
>> That's not the only thing he missed.
> Notice the word essentialy ;-)
>
>> Now, anough teasing, let's help the OP:
>> $a000 & $Vtempfname will only be available in bar.php if
>> register_globals
>> is enabled. This would not be a wise choice. To access the variables use
>> $_GET['a000'] & $_GET['Vtempfname'].
> Oh my... I'm going to set fire to my old PHP programming book and get me
> one
> that covers PHP 5.
Well, PHP 4.2 actually (that's when it defaulted to off). You're right
though that books assuming register_globals is on are outdated, sloppy, or
both :)
--
Rik Wasmus
Navigation:
[Reply to this message]
|