title: Run PHP script from shell or apache server
body: <p>I am wondering if a PHP script can be executed from a shell command line.</p>
  
  <p>Does a script executed from shell have the exact functionality if executed from the browser? or is there a difference in coding.</p>
  
  <p>Is it better to run a script from shell for performance and also is it better to run it from windows or unix/linux</p>
  
  <p>I am asking all these questions because, I am suppose to develop a PHP script that can fetch some data from http headers of some urls listed in a MySQL db and then store the data in the database.</p>
  
  <p>Can you guys point me to the right direction please, Do I need ubuntu, or is there a shell that can run php from windows? all I have at the moment installed is WAMP, which has mysql, php and apache server.</p>
  
  <p>I am sorry for being a novice. </p>
  
  <p>thanks for your kind help</p>