iOS apps


 

 

[php debug=0]
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, “http://app.storn.es”);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
preg_match(‘/(?:<body[^>]*>)(.*)<\/body>/isU’, $output, $matches);
$bodycontent = $matches[1];
preg_match(‘/(?:<head[^>]*>)(.*)<\/head>/isU’, $output, $matches);
$headcontent = $matches[1];
echo $headcontent.” “.$bodycontent;
[/php]