Home | History | Annotate | Line # | Download | only in hello-php
      1 #!@PHP@ -q
      2 <?
      3   // Example for use of GNU gettext.
      4   // Copyright (C) 2003 Free Software Foundation, Inc.
      5   // This file is in the public domain.
      6   //
      7   // Source code of the PHP program.
      8 
      9   setlocale (LC_ALL, "");
     10   textdomain ("hello-php");
     11   bindtextdomain ("hello-php", "@localedir@");
     12 
     13   echo _("Hello, world!");
     14   echo "\n";
     15   echo printf (_("This program is running as process number %d."),
     16                posix_getpid());
     17   echo "\n";
     18 ?>
     19