Re: httpd: PHP Notice: Undefined index: autoplay

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

 



On Thu, April 13, 2006 1:44 am, Noah wrote:
> I just upgraded to apache2.2.0 and reinstalled php4-4.4.2_1 on a
> FreeBSD 4.11
> machine.  I am trying to make sure that my PHP is properly installed
> and
> configured.
>
> I am seeing the following PHP Notice about 10 entries a day in my
> /var/log/messages in regards to:
>
> --- snip --
>
> httpd: PHP Notice:  Undefined index:  autoplay in
> /a/www/data/filname/garbled/radio.blog/index.php on line 9
>
> --- snip ---
>
> I am not quite sure what to do to make sure things are operating
> properly.
> Might someone lend a hand here?

This E_NOTICE has always been there -- But your old php.ini was
probably using E_ALL & ~E_NOTICE and your new php.ini is probably
using E_ALL, so you are now *seeing* this error (of error-level
E_NOTICE) for the first time.

What it means is that you are looking in some array for an index of
'autoplay' and that index has never been set, and that's a sign of Bad
Programming.

It's in this file:
/a/www/data/filname/garbled/radio.blog/index.php

It's on line 9.

It looks something like one of these:
... $some_array['autoplay']...
... "...$some_array[autoplay]..."

In fact, based on what I now about radio blogs, and the concept of
autoplay, I'm put odds on $some_array being one of:
$_GET
$_POST
$_REQUEST
$_COOKIE

But that's just a guess.

The way to fix it is to do something like:

if (isset($some_array['autoplay'])){
  //your old line 9 goes here, for sure, with maybe some more lines
}

-- 
Like Music?
http://l-i-e.com/artists.htm

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux