#8 PHP Notices on index.php

closed-fixed
nobody
None
5
2009-10-23
2008-05-03
Anonymous
No

The default WampServer index page has 3 E_NOTICE's if the error_reporting setting is set to show E_NOTICE, the following three code bits fixes this:

Undefined variable 'aliasContents':

Add:
$aliasContents = '';

After:
if (is_dir($aliasDir))
{

Undefined variable 'projectContents':

Add:
$projectContents = '';

After:
// recuperation des projets

And change the if(isset($projectContents)) to:
if (empty($projectContents))

Undefined variable 'phpExtContents':

Add:
$phpExtContents

After:
// recuperation des extensions PHP

Discussion

  • romain bourdon
    romain bourdon
    2009-10-23

    • status: open --> closed-fixed