title: Fatal error: Call to undefined function curl_init() using Batch File
body: <p>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.</p>
  
  <p>Now I have created a batch file to execute the php and it shows:</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined function curl_init()</p>
  </blockquote>
  
  <p>Not sure why something that could work over in browser is not working in batch file. Below is my code for the batch file:</p>
  
  <pre><code>@ECHO OFF
  php.exe -f "C:\wamp\www\test\test.php"
  </code></pre>
  
  <p>Any idea what's the issue?</p>