I edited the file "www / index.php" Wamp and duplicate each line MySql adapting with version of PostgreSQL
i have error Notice: Undefined offset: 1 in C:\wamp\www\index.php on line 64
my code is ( line 63 64 65 )
preg_match('|PostgreSQLVersion = (.*)\n|',$wampConfFileContents,$result);
$PostgreSQLVersion = str_replace('"','',$result[1]);
preg_match('|wampserverVersion = (.*)\n|',$wampConfFileContents,$result);
I had a similar issue, but with the default installation.
This issue is because wamp has a problem trying to read the php version.
I noticed that in my
wampmanager.conffile, it looked like this:As you can see, in the "phpVersion" line there's no space between = and the version number, so wamp cannot read the version. You can fix this by applying the space: