Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Undefined offset: 0 in C:\wamp64\www\index.php on line 58 (2 replies)

$
0
0
I've just installed wamp and it gives me this error when I go to localhost.


This is the problematic code:

preg_match('|phpVersion = (.*)\n|',$wampConfFileContents,$result);

$phpVersion = str_replace('"','',$result[1]);


I've dumped the $result array and it's empty, so there's an error trying to access $result[1]. How can I fix this? I'm not sure if removing this stuff will break another stuff.

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>