Re: {PHPES} - Include Falido .

From: Date: Tue, 24 Jul 2001 13:13:39 +0000
Subject: Re: {PHPES} - Include Falido .
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-12489@lists.php.net to get a copy of this message
Deberias hacer un if file_exists (chequea el manual) que encierre al include ... > Bueno hice un script estilo menu , uno hace click sobre una letra y hace include de la > letra.php , pero q pasa uando no seleccionas ninguna letra ? me da el siguiente error. > Warning: Failed opening '.php' for inclusion > (include_path='.:/usr/share/php') in /home/httpd/vhost/barrahome/html/recortes/A-Z.php on > line 6 > > yo se q hay una forma de hacer un else o if , pero no se como , aca les dejo el codigo para ver > si me pueden ayudar. > > <? for($i=65;$i<91;$i++) { ?> > <a > href="<?=$PHP_SELF?>?letra=<?=chr($i)?>"><?=chr($i)?></a> > > <? } ?> > <? include "$letra.php" ?> -- Andres Ferrando <pruna@sinectis.com.ar>

« previous php.general.es (#12489) next »