E
E
Eka5552015-12-03 01:22:52
PHP
Eka555, 2015-12-03 01:22:52

In PHP, is it possible to create a custom file format (for example, a file with the ".lang" extension)?

in php you can work with files with extensions .ini , .txt etc. e.g. file_get_contents('people.txt');
Is it possible to set your own extension, for example, a file with the .lang extension and work with it like, for example, with .txt ??

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mykola, 2015-12-03
@Eka555

You can.

S
Sergey, 2015-12-03
@Sergamers

There are wonderful .htaccess config settings

RemoveHandler .php .htm .html
AddHandler application/x-httpd-php .php .htm .html

One of the articles can be read here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question