Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57185 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4600 invoked from network); 4 Jan 2012 16:19:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2012 16:19:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=ava3ar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ava3ar@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: ava3ar@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:46121] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/39-50667-60C740F4 for ; Wed, 04 Jan 2012 11:19:19 -0500 Received: by vbbfd1 with SMTP id fd1so14262927vbb.29 for ; Wed, 04 Jan 2012 08:19:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=VmQsVa4WMe/iVaIcfF7NZnvH4bsHIfNnc1iK0zkjSCE=; b=pRTCZ6TR9AGlR2TjQRW4SS/fDCl4V/yvrW/Uv4ZiWajHFVyJHCjlhzao/FuEHWIZEc 8Xnbf41sJGfJ7JldwIinjXFxTQRWFg1uCoOpRK9K8pUDyoIWPhCp/VS7xwjRfoLPPSSR VhCWKhCg6kodgpqEpcsmXAkw+u57vrmr1e8UQ= Received: by 10.52.174.46 with SMTP id bp14mr12082492vdc.107.1325693955252; Wed, 04 Jan 2012 08:19:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.154.193 with HTTP; Wed, 4 Jan 2012 08:18:54 -0800 (PST) Date: Wed, 4 Jan 2012 16:18:54 +0000 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=bcaec51b9db148a34b04b5b62d7d Subject: Feature Request From: ava3ar@gmail.com (Keloran) --bcaec51b9db148a34b04b5b62d7d Content-Type: text/plain; charset=ISO-8859-1 I dont seem to have the karma for doing this in RFC so ill propose it here, and once karma make an RFC Is it possible to have a 2nd option on file_exists so that it returns the path you specified --Example $cFile = file_exists("/file/located/here.php", true); and if that exists it will return /file/located/here.php instead of true --Reason the reason for this is simple actually at the moment if you want to include a file for usage but want to check it exists you have todo the following if (file_exists("/file/located/here.php")) { $cFile = "/file/located/here.php"; } which can if your doing lots of checking alot of extra code for no reason, or if you want to use variables, lots of louse variables just for something that could be pulled from the request --bcaec51b9db148a34b04b5b62d7d--