Re: If exists the un fichero

From: Date: Mon, 09 Feb 2004 21:11:00 +0000
Subject: Re: If exists the un fichero
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-45342@lists.php.net to get a copy of this message
La función file_exists(nombre_fichero) On Mon, 9 Feb 2004 10:59:40 +0100, marolijo wrote > 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"; > ?> > > __________________________________________________ > > PolNetwork.com > Pol Maresma i Oliveras > pol@polnetwork.com - webmaster@santpol.org > Creació, manteniment i allotjament de pàgines Web > __________________________________________________ > > PRIVAT I CONFIDENCIAL - Aquest missatge i els document adjunts que pugui > contenir són confidencials. Si no sou el destinatari del missatge no > teniu permís per llegir-lo, copiar-lo ni reenviar-lo. Si heu rebut > aquest missatge per error, siusplau comuniqueu-ho al remitent > retornant el missatge i esborreu les còpies del missatge i els seus > documents adjunts. Aquest avís no pot ser eliminat. > > PRIVATE & CONFIDENTIAL - This email message and attachments contain > information that is confidential. If you are not the intended > recipient, you are not permitted to use, copy or distribute the > message and attachments in any manner. If you have received this > email in error, please inform the sender by return email immediately > and delete all copies of the message and its attachments. This > notice should not be removed. __________________________________________________ > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > via news: news://news.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com > > -- > Este mensaje ha sido analizado por el servicio de antivirus > de la UCf, mediante MailScanner y F-prot en busca de virus > y otros contenidos peligrosos, y se considera que está limpio. > No obstante tome sus propias medidas de seguridad. -- Facultad de Ingenieria Informatica Universidad de Cienfuegos -- Este mensaje ha sido analizado por el servicio de antivirus de la UCf, mediante MailScanner y F-prot en busca de virus y otros contenidos peligrosos, y se considera que está limpio. No obstante tome sus propias medidas de seguridad.

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