title: I want to parse the data obtained by using CURL to get useful information from the result
body: <p>As guided i am reposting the question in full detail. The aim of code is to retrieve the result from remote server and store it to my database and then display it when required by user from my server's database.  </p>
  
  <p>i want to retrieve individual sbject and marks  from the site.
      
  
  <pre><code>curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($request, CURLOPT_POST, true);
  curl_setopt($request, CURLOPT_POSTFIELDS, array('rid' =&gt; '1kn06cs032','submit' =&gt;   'SUBMIT'));
  
  if(!($result = curl_exec($request)))
      die('curl_exec failed with error: '.curl_error($request));
  
  curl_close($request);
  
  //echo strip_tags($result,'&lt;tr&gt;&lt;b&gt;&lt;td&gt;') ;
    $s=strip_tags($result,'') ;
  //strstr($s,")");
    $t=strstr($s,"(PROVISIONAL)");
     echo $t;
     //$a=explode('Semester:',$t);
     //echo $a[0];
     //echo $a[1];
  
   ?&gt; 
  </code></pre>
  
  <p>Please guide me in this regard i have struck in this as i have tried many alternative bt no luck as i have little knowledge of parsing and basic knowledge of php . </p>
  
  <p>Help will be highly appreciated.</p>
  
  <p>Thanks </p>