Ver Mensaje Individual
  #12 (permalink)  
Antiguo 21/06/2010, 11:31
Avatar de Most
Most
 
Fecha de Ingreso: marzo-2009
Mensajes: 642
Antigüedad: 15 años, 1 mes
Puntos: 6
Respuesta: cURL y regular expression - Problema

entonces asi?:

Código PHP:
Ver original
  1. <?php
  2. $cURL = curl_init();
  3. $URL = 'http://www.forosdelweb.com/f18/curl-regular-expression-problema-818261/';
  4. curl_setopt($cURL, CURLOPT_URL, $URL);
  5. curl_setopt($cURL, CURLOPT_RETURNTRANSFER,1);
  6. $URL_CODIGO = curl_exec ($cURL);
  7. curl_close ($cURL);
  8. function recoger_texto($aqui?, $aqui?)
  9. {
  10. preg_match("<b>(.*)</b>", $URL_CODIGO, $matches);
  11. return true;
  12. }
  13. echo $matches;
  14. ?>