title: How to compile PHP DLL extension x86 x64
body: <p>I am trying to set up some sort of a nightly build environment that would compile both a x64 and x86 version of a PHP DLL extension.</p>
  
  <p>I have followed <a href="https://wiki.php.net/internals/windows/stepbystepbuild" rel="noreferrer">this</a> guide to set up the environment and build the extension and it works fine. </p>
  
  <p>At the moment I have two virtual machines, one with x86 and one with x64 versions of Windows (XP and 7). </p>
  
  <p>Is there a way to build both DLLs (32 and 64 bit) in the same virtual machine (I presume this would be the Windows 7 one) using a batch file?</p>
  
  <p>My goal is to set a nightly build "server" but also be able to compile DLLs with the push of a button.</p>
  
  <p>Thanks for any pointers.</p>
  
  <p>The machines that compile the DLLs have Visual Studio 2008 Express and Windows SDK 6 (for the x86) and 7 (for the x64)</p>