note 36096 deleted from function.file-exists by didou

From: Date: Thu, 25 Sep 2003 16:59:53 +0000
Subject: note 36096 deleted from function.file-exists by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57122@lists.php.net to get a copy of this message
Note Submitter: Bob at car-hire-in dot org ---- Include language file: <? $lang = substr($HTTP_ACCEPT_LANGUAGE,0,2); if(file_exists( "$lang.inc.php")){ require("$lang.inc.php"); } else{ require('en.inc.php'); } ?> Enjoy! Bob http://www.car-hire-in.org/North_America/

« previous php.notes (#57122) next »