I have a PHP that downloads files from backend. I am using WAMP in Windows 7 and it works perfectly when done through the browser.
Now I have created a batch file to execute the php and it shows:
Fatal error: Call to undefined function curl_init()
php.exe -f "C:\wamp\www\test\test.php"
uncomment the following on your php.ini
and restart webserver. This might be due to curl disabled in your php.