1. 301.
    0
    if(!function_exists('curl_init')) return 'cURL not available';
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, ' http://search.yahooapis.c...Service/V1/termExtraction ');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, array('appid'=>'AutoTagger','context'=>$content,'query'=>$subject,'output'=>'php'));
    $response = curl_exec($ch);
    if(curl_errno($ch)) return curl_error($ch);
    curl_close($ch);
    $results=unserialize($response);
    $tags = explode(',',$tags);
    if(is_array($results['ResultSet']['Result'])) $tags=array_merge($tags, $results['ResultSet']['Result']);
    array_walk($tags,create_function('&$value','$value = tagger_proper_case(trim($value));'));
    $tags = array_unique($tags);
    if(in_array(,$tags)) unset($tags[array_search(,$tags)]); // remove blanks
    return $tags;
    ···
   tümünü göster