note 36097 deleted from function.substr by didou

From: Date: Thu, 25 Sep 2003 16:59:45 +0000
Subject: note 36097 deleted from function.substr by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57120@lists.php.net to get a copy of this message
Note Submitter: ---- Include language file: <? $lang = substr($HTTP_ACCEPT_LANGUAGE,0,2); // de fr it ... 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 (#57120) next »