Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/01/2007, 02:55
aeks
 
Fecha de Ingreso: enero-2007
Mensajes: 11
Antigüedad: 17 años, 3 meses
Puntos: 0
Re: Variable $PHP_SELF

<? $img = $_SERVER ['PHP_SELF'];
do {
$pos = strpos ($img, "/");
$img = substr ($img, ($pos+1));
} while ($pos != true);
$img = substr ($img, 0, -4); $secc = $img;
if ($secc == "contacta" or $secc == "error" or $secc == "areaprivada") $img = "vacio";
if ($secc == "certfISO") $img = "calidad"; ?>

el problema que me da es que genera un bucle infinito creo yo pq la variable $img no toma valor