Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/12/2013, 07:59
Avatar de angelAparicio
angelAparicio
 
Fecha de Ingreso: julio-2009
Ubicación: Sevilla
Mensajes: 307
Antigüedad: 14 años, 9 meses
Puntos: 22
Respuesta: duda de como poder ejecutar enlace

Tienes que usar la herramienta curl.

Por ejemplo, si defines esta función

Código PHP:
Ver original
  1. function http_request($uri, $time_out = 5, $headers = 0) {
  2.     // Initializing
  3.     $ch = curl_init();
  4.  
  5.     // Set URI
  6.     curl_setopt($ch, CURLOPT_URL, trim($uri));
  7.     curl_setopt($ch, CURLOPT_HEADER, $headers);
  8.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  9.     curl_setopt($ch, CURLOPT_TIMEOUT, $time_out);
  10.     $result = curl_exec($ch);
  11.  
  12.     curl_close($ch);
  13.  
  14.     return $result;
  15. }

Pues llamar a la url así:
Código PHP:
Ver original
  1. $respuesta = http_request('http://user:[email protected]:9000/user_edit.html?user=1&pwd=1&description=test&disabled=0&expdate=2014-01-18&action=Save&newuser=');

En $respuesta tendrás el contenido de ejecutar la URL, por si necesitas algún tipo de respuesta.
__________________
Mis webs:
- Programador Web Autónomo
- Conciertos en Sevilla