I'm going to give a basic example of what I need to be able to do, in the hopes that somebody can point me in the right direction
I prepare the URL required for the HTTP GET request to get data (trains between destinations by simply typing the name of the stations) from oncf.ma
I used cURL for that purpose but the response is string. here is the code i used,
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL,'www.oncf.ma/Pages/ResultatsHoraire.aspx?depart=BERRECHID&arrivee=BENGUERIR&CodeRD=0093&CodeGD=00183&CodeRA=0093&CodeGA=00120&heure=0000&date=19/11/2013');
$content = curl_exec($ch);
echo $content;
What I need to do, that I don't know how to do, is how can manipulate string to get just data needs and not all html parsing to string.
response is change if we change parameters.