Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/10/2003, 00:37
Avatar de gds
gds
 
Fecha de Ingreso: febrero-2003
Mensajes: 31
Antigüedad: 21 años, 1 mes
Puntos: 0
otra opción podría ser:

<?php

// chequeamos que la variable exista
if (isset($ver)) {
// ahora que el archivo existe
$fo = fopen ("$ver.php", "r");
$fc = fclose ($fo);
// si no existe...
if ($fo == false) {
// ...le enviamos un mensaje al navegador de que la página no existe
header("http/1.0 404 Not Found");
}
// sino...
else {
// ...incluimos la página
include ("$ver.php"); }

?>


facil, no?
__________________
It is not enough for a handful of experts to attempt the solution of a problem, to solve it and then to apply it. The restriction of knowledge to an elite group destroys the spirit of society and leads to its intellectual impoverishment. - Albert Einstein