Posted by Andy Hassall on 10/08/05 21:36
On 8 Oct 2005 11:25:55 -0700, "gregsands" <saunders1@gmail.com> wrote:
>Help! ive been happily coding away for hours only to get a 'Notice:
>Undefined variable' error. I switched off the error reporting in
>php.ini then created a helloworld.php file to check i wasnt going
>crazy, but i am!
>
>my helloworld.php file looks like this :
>
><?php
>echo ("Hello $word !");
>?>
>
>when i enter "http://localhost/helloworld.php?word=world" in the
>address bar i still only get "Hello !" !!!
>
>what in the world ?
Are you working from an old book or tutorial? Because $word will be undefined
in the example you gave, unless you explicitly turn on a deprecated
configuration option.
See: http://uk2.php.net/manual/en/language.variables.external.php
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|