You are here: Re: Notice: Undefined variable and include files « PHP Programming Language « IT news, forums, messages
Re: Notice: Undefined variable and include files

Posted by Chung Leong on 11/01/05 03:03

Mike wrote:
> I'm new to PHP - moving over from ASP.
>
> I have a number of include files, the first of which sets the value of
> a variable $loginmsg. I use that variable in a subsequent include
> file, but get a "Notice: Undefined variable loginmsg" warning. I've
> had a good look at previous posts concerning this warning, and see that
> isset() is recommended to prevent this kind of warning. Is this
> totally necessary?

One thing to remember in PHP is that global variables are not
automatically availabe within functions.

 

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

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