title: how to execute a link in php file
body: <p>I have post.php file in which I want to execute testing file without any output to current page.  I have done the following code but its not working. Please any idea how to execute a link in a file without disturbing the post.php file. </p>
  
  <pre><code>$link = curl_init();
  curl_setopt($link , CURLOPT_URL, "https://mydomain.com/testing.php?id=".$id);
  curl_setopt($link , CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($link , CURLOPT_HEADER, 0);
  $output = curl_exec($link);
  curl_close($link );
  </code></pre>