Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/04/2013, 03:00
Avatar de Jask
Jask
 
Fecha de Ingreso: abril-2006
Ubicación: Madrid
Mensajes: 773
Antigüedad: 18 años
Puntos: 15
Respuesta: verificar si una pagina https existe

A ver si te vale

Código PHP:
Ver original
  1. if (substr($string, 0, 7) == "http://")
  2.     $res = "http";
  3.  
  4. if (substr($string, 0, 8) == "https://")
  5.     $res = "https";
__________________
Os iusti meditabitur sapientiam
Si te he ayudado, por qué no un poquito de Karma :) ?