0
preg_match('|phpVersion = (.*)\n|',$wampConfFileContents,$result);
$phpVersion = str_replace('"','',$result[1]);
preg_match('|apacheVersion = (.*)\n|',$wampConfFileContents,$result);
$apacheVersion = str_replace('"','',$result[1]);
preg_match('|mysqlVersion = (.*)\n|',$wampConfFileContents,$result);
$mysqlVersion = str_replace('"','',$result[1]);
preg_match('|wampserverVersion = (.*)\n|',$wampConfFileContents,$result);
$wampserverVersion = str_replace('"','',$result[1]);

From line 31 to line 38, when i open localhost so it will give this error and localhost's color is still yellow. How can I get it green?

Wasi Ahmad
  • 35,739
  • 32
  • 114
  • 161
Dynamo
  • 1
  • 1
  • 2

1 Answers1

0

It is because of the space in the config-file. I guess when you select another version of Apache, PHP or MySQL in the WAMP-server menu, it changes the config file but removes the space right after the equal sign: mysqlVersion ="5.7.4" should be: mysqlVersion = "5.7.4"