You are here: Re: Newbie - Notice: Undefined variable « PHP Programming Language « IT news, forums, messages
Re: Newbie - Notice: Undefined variable

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация