php errors

Discussion in 'General' started by alexillsley, Jan 15, 2007.

  1. alexillsley

    alexillsley New Member

    Hi again,
    Why on most of my php pages do i get the following error

    Thanks,
    Alex
     
  2. Ben

    Ben Active Member Moderator

    I would just ignore that notice in php, but never the less, the reason herefor is, you access an uninitalised index of an array.

    e.g.
    PHP:
    $test = array();
    echo 
    $test[2]; //Would cause this warning
    Can you post the line where this error occurs?

    To just wipe it out change the Error Reporting in php.in to
    E_ALL ~ E_NOTICE (see comments in the php.ini)
     
  3. alexillsley

    alexillsley New Member

    Thanks, i edited the following php.ini file /etc/php5/apache2/php.ini is this the correct php.ini file? If so i edited and didnt make a difference:confused: Any ideas?
    Thanks,
    Alex
     
    Last edited: Jan 15, 2007
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You must restart the apache server after you changed the file.

    /etc/init.d/apache2 restart
     
  5. alexillsley

    alexillsley New Member

    needed to be

    PHP:
    E_ALL &~E_NOTICE
    Thanks for all your help alex!!!
     

Share This Page