I have a site which has a tree as follow:
public_html/
index.php
lang.fr.php
lang.en.php
lang.php
description/
index.php
lang.fr.php
lang.en.php
... (lots of directory basically like description)
All index.php
include lang.php
, which is supposed to include each pages' version of lang.fr.php
or lang.en.php
. However, if I simply put
include("lang.{$lang}.php");
it includes the lang.fr.php
of the lang.php
's directory.
Is it possible or do I have to put lang.php
's content in each pages?