Re: If exists the un fichero
| From: | Killer Dog | Date: | Tue, 10 Feb 2004 08:43:45 +0000 |
| Subject: | Re: If exists the un fichero | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-45348@lists.php.net to get a copy of this message | ||
Hola marolijo,
Prueba a revisar el manual...
http://es.php.net/manual/en/function.file-exists.php
Por cierto, ¿para qué usas @ delante de $HTTP_GET_VARS?
mye> Como puedo hacer un IF EXISTS the un fichero? lo quiero para que
mye> automáticamente mire si encuentra un fichero para hacer un include o no
mye> Ahora lo hago así pero querría hacerlo automático.
mye> gracias
mye> <?php
mye> if (@$HTTP_GET_VARS["plana"]=="")
mye> include "menu.php";
mye> else
mye> include
mye> "menu-".@$HTTP_GET_VARS["plana"].".php";
mye> ?>
mye> __________________________________________________
mye> PolNetwork.com
mye> Pol Maresma i Oliveras
mye> pol@polnetwork.com - webmaster@santpol.org
mye> Creació, manteniment i allotjament de pàgines Web
Saludos,
Killer
--
killer@colacao.es