El código lo tengo ahora así:
Código PHP:
Ver original CURLOPT_URL => "https://www.habbo.es/habblet/habbosearchcontent?searchString=anen100",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => false,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => "",
CURLOPT_USERAGENT => "spider",
CURLOPT_AUTOREFERER => true,
CURLOPT_CONNECTTIMEOUT => 120,
CURLOPT_TIMEOUT => 120,
CURLOPT_MAXREDIRS => 10,
CURLOPT_COOKIESESSION => true,
CURLOPT_POST => 1,
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSLVERSION => CURL_SSLVERSION_TLSv1,
CURLOPT_VERBOSE => 1
);
$page = curl_init("https://www.habbo.es/habblet/habbosearchcontent?searchString=anen100"); if($content === false)
{
}
else
{
echo 'Operación completada sin errores';
}
$start = explode('<b>anen100</b><br />', $content, 2); $end = explode('</div>', $start[1], 2); echo $motto;