title: Call a link/URL using CURL command in PHP
body: <p>I want to logout using curl command from google apps account. I am using the following code but it doesn't seem to work. Where have I gone wrong ?</p>
  
  <pre><code>$ch = curl_init("https://mail.google.com/a/MY_DOMAIN.in/?logout&amp;hl=en" );
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  curl_setopt($ch, CURLOPT_COOKIE, 'PHPSESSID=fdbdcaa41b2075a9f90b74cd885a932b');
  $r=curl_exec($ch);
  curl_close($ch);
  </code></pre>
  
  <p>Apart from this, is there any other way I can call the above URL without showing the output to the user in PHP ? Please help ! I can furnish with any other information if you require.</p>