Slashdot Mirror


User: abreathoflife

abreathoflife's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. file() on On Creating Multilingual Web Sites? · · Score: 1

    /*

    I do PHP a lot. I would use the file() function (Each element of the array corresponds to a line in the file, with the newline still attached). You could easily add support for any number of languages this way.

    For example, each first line (foo[0]) of the file could be whatever the pages <title> tag would read in THAT specific language. Then you'd only have to make sure your code would alter which file to grab, with the specific language in it. Then the second line (foo[1]) could be something else, and the third (foo[2]), fourth (foo[3]), and so on, could each be used for some specific part.

    Or you could just simply use MySQL or some other database, if you have access to it.

    */