Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/06/2010, 20:30
juanla
 
Fecha de Ingreso: julio-2009
Mensajes: 103
Antigüedad: 14 años, 9 meses
Puntos: 1
Respuesta: Rellenar campos web desde PHP

Mas o menos por ahi van los tiros de lo que quiero hacer, para poneros en situacion me gustaría tener un script el cual meto un nombre de usuario de un juego online y veo sus estadisticas, eso se puede hacer del buscador de la web, pero yo quiero darle uso a ese script que realize, la cosa es:

Código PHP:
Ver original
  1. Warning: file_get_contents(http://www.gamersfirst.com/warrock/?q=Player&nickname=nombreusuario) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\xampp\htdocs\warrock3.php on line 2

Me suelta ese error si lo hago tanto como fopen, como file_get_contents

Con cURL me suelta lo mismo pero así:
Código HTML:
Ver original
  1. Internal Server Error
  2.  
  3. The server encountered an internal error or misconfiguration and was unable to complete your request.
  4.  
  5. Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
  6.  
  7. More information about this error may be available in the server error log.
  8.  
  9. Apache/2.2.11 (Ubuntu) Server at www.gamersfirst.com Port 80

El siguiente metodo me da error al buscar el archivo require_once 'HTTP/Request.php'; no entiendo esa línea así que no se que hacer :(

PD: Yo pense en crearle un RSS con una web de estas online y extraerlo de ahí pero el problema esque al ser una variable $nombreusuario lo que me interesa pues no tiene sentido crear un rss por cada una..