Re: reporting errors when $ sign is missing in front of a variable
| From: | marco@behnke.biz | Date: | Thu, 12 Jan 2012 07:57:37 +0000 |
| Subject: | Re: reporting errors when $ sign is missing in front of a variable | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316269@lists.php.net to get a copy of this message | ||
Haluk Karamete <halukkaramete@gmail.com> hat am 12. Januar 2012 um 06:17
geschrieben:
> Thanks...
> Well I just changed the <?php error_reporting (E_ALL ^ E_NOTICE); ?>
> to <?php error_reporting (E_ALL ); ?> and that does it for me..
>
> Notice: Use of undefined constant my_age - assumed 'my_age' in
> D:\Hosting\5291100\html\blueprint\bp_library.php on line 40
> my_age
>
> Now back in business :)
If you are programming with an IDE, it does the work for you. While programming
you will see warning notices, that you are refering to something unknown.