Permalink: http://www.treeweb.es/u/957/
17/01/2011
Audio del traductor de Google
0
1 <?php
2 $url = "http://translate.google.com/translate_tts?q=".$_GET['mensaje']."&tl=es&prev=input";
3 $ch = curl_init();
4 curl_setopt( $ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1" );
5 curl_setopt( $ch, CURLOPT_URL, $url );
6 $content = curl_exec( $ch );
7 $response = curl_getinfo( $ch );
8 curl_close ( $ch );
9 echo $response;
10 ?>
11
12
© TreeWeb 2010. Todos los derechos reservados