title: Ajax call from PHP to execute seperate PHP; any dangers?
body: <p>I'm trying to execute a php-script in the background, so the user doen't have to wait for the processing to be done.</p>
  
  <p>In PHP I can call a javascript:</p>
  
  <pre><code>?&gt;
  &lt;script&gt;
  window.top.hdReq();
  &lt;/script&gt;
  &lt;?
  </code></pre>
  
  <p>which calls a javascript XMLHttpRequest to trigger the php script. I'm not interested in any response from that script.</p>
  
  <p>I know it might be a bit of a workaround, but... it works like a charm, for now :-) And since I don't know on what kind of server the website ends up, I have to look for a way that works on all occasions.</p>
  
  <p>My question, before I write the entire php-script: might there be any dangers or problems involved in executing it this way? (Besides the user not allowing javascript, but in that case the entire website doen't work :-)</p>