Thursday, April 7, 2011

Wampserver problem: Undefined variable: mywampfp

Can't get Wampserver running. Just installed it but get the following in php_error.log:

[28-Jan-2009 10:13:17] PHP Notice: Undefined variable: mywampfp in C:\wamp\scripts\refresh.php on line 252 [28-Jan-2009 10:13:17] PHP Notice: Undefined variable: i in C:\wamp\scripts\refresh.php on line 252

Anyone know what's wrong?

Thanks!

From stackoverflow
  • You should try xampp. Personally I like it better and have had no problems with it.

  • Use the isset function to check if a variable exists before accessing it if you cannot be sure that this variable exists:

    if (isset($mywampfp)) {
        // …
    }
    

    Same applies to elements of arrays, for example:

    if (isset($_GET['mywampfp'])) {
        // …
    }
    

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.