I'm trying to use the GNU GetText library, but PHP keeps giving this error:

X-Powered-By: PHP/4.0.6 Content-type: text/html
Fatal error: Call to undefined function: gettext() in C:\Files\Web\nls.php on line 2
PHP Warning: Unable to load dynamic library 'C:\Program Files\PHP\extensions\php_gettext.dll' - The specified module could not be found. in Unknown on line 0

I know the extension is there, I've tried various permission settings on the directory, and the following for extension_dir in PHP.ini:

extension_dir = ./
extension_dir = C:\Program Files\PHP\extensions\
extension_dir = C:\Program Files\PHP\extensions
extension_dir = C:/Program Files/PHP/extensions/
extension_dir = C:/Program Files/PHP/extensions
extension_dir = extensions
extension_dir = .\extensions
extension_dir = ./extensions

and even putting php_gettext.dll in...

extension_dir = C:\WINNT\system32\

Anybody know what the problem is?

    Ah, gnu_gettext.dll is in PHP/dlls. I see php_gettext.dll also needs PHP/php4ts.dll. Is there a path option in php.ini (I don't see anything initially) or should these be put in Window's PATH?

      3 months later

      Also trying to get gettext.dll loaded for php4 on wind2K.

      Tried dependancy walker and now I have gnu_gettext.dll installed. Still missing apphelp.dll and can't find it anywhere on the net.

      thanks
      gordo

        6 months later

        You have to copy the gnu_gettext.dll to the \winnt\system32 folder.

          Write a Reply...