title: Run php function inside jQuery click
body: <p>How do i run a PHP function inside jQuery click event. I have the following which is not correct. when the user clicks on a button, i want a new directly created.</p>
  
  <pre><code>$('button').click(function(){
    &lt;?php mkdir('/test1/test2', 0777, true); ?&gt;
    return false;
  })
  </code></pre>