can I call a PHP method to run asynchronously?
<p>When a user views a certain profile page I need to send the end user an email but would like to do this asynchronously if at all possible.  Can this be done with PHP? I really don't want to wait for the PHP function to complete before rendering the rest of the page.  It should be seamless to the user.</p>

<p>Or is this a better solution from the client side:</p>

<pre><code>$.post("msg.php?user=xxx", function(data) {
    ....   
}, "json");
</code></pre>

<p>Is there a preferred method?    </p>
