Re: Re: [Linux dev] Undefined variables

From: Date: Sun, 10 Sep 2006 12:06:54 +0000
Subject: Re: Re: [Linux dev] Undefined variables
References: 1 2 3 4  Groups: php.windows 
Request: Send a blank email to php-windows+get-27142@lists.php.net to get a copy of this message
Please reply to the list not just directly to me. Alf Stockton wrote: > Stut wrote: >> ......snip...... > >> // Really not sure why this is here >> --$Count; >> // echo 'Count = '.$Count.' $tempvar = '.$tempvar; >> > .....snip..... > Part of the backwards iteration. In other words I was using the array > from the back to the front rather than from 0 through end. > Thank you for your input and code. > I do find it interesting that the program I had worked fine on versions > of Windows PHP previous to 5.1.6. The script you had was working, but it was throwing out notices. Notices are a level of message below warnings that indicate that you're doing something that can lead to bugs but that PHP can cope with. They can be disabled and are on a shocking number of PHP installations I come across. When you say it "worked fine" it's probably because the PHP configuration had notices disabled. This is bad m'kay. With notices enabled you may end up writing a bit more code, but you also get told when you do things like mis-type variable names and the like. Look in the PHP manual for the error_reporting php.ini setting. The knowledge you seek will be found there. -Stut

« previous php.windows (#27142) next »