Answer the question
In order to leave comments, you need to log in
How to connect lang files to a regular php file?
Hello, there was a need to output information from a lang file to a regular php file. The files are in the root directory. How to create lang files for it correctly?
Answer the question
In order to leave comments, you need to log in
Depending on what will be there ... If they look like ordinary language files, for example,
then you can display them like this ...
$lang = parse_ini_file($_SERVER['DOCUMENT_ROOT']."/lang.ini");
echo $lang['LANG_TEXT'];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question