[mythtv-users] mythppv.com php script

Adam Bodnar ambodnar at gmail.com
Wed Mar 8 03:53:09 UTC 2006


On 3/5/06, A JM <vbtalent at gmail.com> wrote:
> Andrew,
>
>  I tried running your script tonight and got the following error, any ideas
> on what I did wrong?
>
>  [mythtv at myth ~]$ /usr/bin/php -f
> /home/mythtv/mythppvphp/mythppv.php
>  PHP Notice:  Undefined index:  533 in
> /home/mythtv/mythppvphp/mythppv.php on line 58
>  PHP Notice:  Use of undefined constant next - assumed 'next' in
> /home/mythtv/mythppvphp/mythppv.php on line 58
>  PHP Notice:  Undefined index:  533 in
> /home/mythtv/mythppvphp/mythppv.php on line 59
>

So you know, those aren't actual errors that prevent the script from
running. PHP has 3 types of notifications, Notices, Warnings, and
Errors.

Notices are typically just things like not declaring a variable before
using it or accessing an index of an array that doesn't exist. It's a
you didn't follow a typical programming expectation. These
potentionally could indicate why your script isn't doing what you want
though.

Warnings are the script really isn't going to work cause you did
something really stupid. I always make sure to fix these in my
scripts.

Errors are obviously very bad as your script will not run if you have one.

I'm sure PHP has better definitions of these terms.


More information about the mythtv-users mailing list