When I try to view my site in localhost I get this error:
unexpected '(' in c:/wamp64/bin/apache/apache2.4.46/bin/php.ini on line 1964
in C:\wamp64\scripts\refresh.php on line 1034
Here's the lines around that code in php.ini - line 1964 is the beginning of set_error_handler()
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="c:/wamp64/tmp"
xdebug.show_local_vars=0
set_error_handler(function($errno, $errstr) {
return strpos($errstr, 'mcrypt_') === 0;
}, E_DEPRECATED);
I can't see anything wrong in either file.
I thought it might have been the short_open_tag issue, but I tried setting it to short_open_tag = On but it made no difference.
The other weird thing is that in the browser's url box, if I add a file after 'localhost' - it downloads rather than executing the file eg
localhost/privacy-policy.php downloads privacy-policy.php rather than displaying it
Any idea what else causes this?
Thank you.