PHP.nl

bindtextdomain

bindtextdomain

Sets or gets the path for a domain

 **bindtextdomain** string $domain  $directory

The function sets or gets the path for a domain. bindtextdomain

domainThe domain.

directoryThe directory path. An empty string means the current directory. If null, the currently set directory is returned.

The full pathname for the currently being set, return.falseforfailure. domain

Voorbeeld: example

<?php

$domain = 'myapp';
echo bindtextdomain($domain, '/usr/share/myapp/locale');

?>
/usr/share/myapp/locale

Opmerking: > The information is maintained per process, not per thread. bindtextdomain