Re: If exists the un fichero

From: Date: Mon, 09 Feb 2004 16:56:14 +0000
Subject: Re: If exists the un fichero
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-45325@lists.php.net to get a copy of this message
El lun, 09-02-2004 a las 10:59, marolijo@yahoo.es escribió: > Como puedo hacer un IF EXISTS the un fichero? lo quiero para que > automáticamente mire si encuentra un fichero para hacer un include o no > > Ahora lo hago así pero querría hacerlo automático. > > gracias > > <?php > if (@$HTTP_GET_VARS["plana"]=="") > include "menu.php"; > else > include "menu-".@$HTTP_GET_VARS["plana"].".php"; > ?> > http://php.net/file_exists -- Manuel González Noriega Simplelógica, construcción web URL: http://simplelogica.net EMAIL: simplelogica@simplelogica.net TELEFONO: (+34) 985 22 12 65 Logicola es el weblog de Simplelógica http://simplelogica.net/logicola/ </p>That's right. We said Frontpage.</p>

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