Re: Re: [Linux dev] Undefined variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux