Ver Mensaje Individual
  #93 (permalink)  
Antiguo 21/03/2012, 17:20
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 10 meses
Puntos: 2135
Respuesta: [APORTE] file_get_contents(), cURL, HTTP_Request

Ejemplo:

Código PHP:
Ver original
  1. <?php
  2. $opts = array('http' => array('proxy' => 'tcp://127.0.0.1:8080', 'request_fulluri' => true));
  3. $context = stream_context_create($opts);
  4. $fp = fopen('http://www.example.com', 'r', false, $context);

Saludos.