I\'ve been using this exact same code for ages, and I have never had a single problem. Now all of a sudden it has stopped working.
I have read across the internet ab
Add your PHP directory in the Path environment variable. (C:\Program Files\wamp\bin\php\phpX.XXX.XXX for wamp)
It has worked for me!