Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/04/2010, 13:27
easy
 
Fecha de Ingreso: diciembre-2008
Mensajes: 454
Antigüedad: 15 años, 5 meses
Puntos: 2
Respuesta: tengo este script que y me aparece un error

y el ejemplo es:
example.php
Código PHP:
  // include Spider class file
  
require_once('spider.class.php');

  
// create new Spider object
  
$spider = new Spider('http://www.grupogloria.com/'); //here my web

  // allow files with extension *.txt being spidered
  
$spider->allowType('txt');

  
// and disable files with that extension
  
$spider->restrictType('txt');

  
// set it to true if you want to see what is happening on the screen
  
$spider->setVerbose(true);

  
// start spidering website
  
$spider->startSpider();

  
// all found and fetched links are in that variable
  
$links $spider->all_links;

  
// print it out
  
print_f($links); 
por que el error??

el error hacer referencia a:
Código PHP:
  print_f($links); 
__________________
$ayudar = 'ayudar es compartir';
echo $ayudar;