This post is the result of about 3 or 4 hours of Googling! There are so many false trails out there that I almost gave up, but I managed to work out how to do this most impossible of things:
Restart Apache from the command prompt (Git Bash, CMD.EXE, batch file) on Windows 10, without receiving the "Do you want to allow this app to make changes to your device" prompt:
Update – 1 August 2013:
There are lots of suggestions in the comments that are better than my original solution. Also, with 5 years of hindsight, I’d approach it differently anyway! The way I’d do this now would be as follows:
var lcValues = <?php echo json_encode($myPHPArray); ?>;
So much simpler! PHP4 has almost disappeared so there’s no reason not to use json_encode. I’d recommend that you stop reading now and just go with that.
In one of my older posts, on PHP Performance Profiling with APD, there’s a discussion in the comments about which IDE is best to use with PHP. Terence Chang recommends Zend Studio and mentions Eclipse. Dreamweaver’s also discussed and I state that I just use a text editor (with syntax highlighting).
Against that backdrop, I read with interest that the NetBeans IDE 6.5 Beta has just been released and that it now caters to PHP developers (article by Lloyd Dunn). Continue reading