title: Copy directory and files with php code
body: <p>I need help or answer is it possible to copy directory with all content.
  I have two web sites on same server.
  And i need to copy:</p>
  
  <p>source: home/public/first/images</p>
  
  <p>destination: home/public/second/images</p>
  
  <p>and if is possible to do that i need to setup crone job for auto sync that two directories every 5 minutes for example.
  I was try this
  <a href="http://i.stack.imgur.com/yfUAv.png" rel="nofollow">screenshot code</a>
  Sorry for bad English i hope you understand my problem </p>