Php Exec Wget To run Php + javascript files
<p>I tried the below code to execute an url in background,It is working perfectly, but only php files are executed, i have certain javascript files that posts request.That javascript part is not executed,.How can i make my server to execute the url via server browser so the js too gets executed.</p>

<pre><code>exec("wget http://domain.com/user.php?id=uniquetoken &gt; /dev/null 2&gt;&amp;1 &amp;");
</code></pre>

<p>P.s : What i actually need is, when user visits a site, some background process has to be done even after they close the browser.(beacause that backgroud process takes more than 2 minutes to complete)</p>
