Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

com_propset($beeper, "Count", 6);


//make a beep
com_invoke($beeper, "Beep");
?>


value com_propget(integer object, string property)


The com_propget function returns the value of a property on a COM object.


com_propput


Use com_propput as an alias for com_propset.


boolean com_propset(integer object, string property, value
data)


The com_propset function changes the value of a property.


com_set


Use com_set as an alias for com_propset.


Gettext


The Gettext functions are based on work by the GNU Translation Project. They aim to
make it easier to write programs that send messages to users in their preferred language.
You can read more about gettext on the GNU site http://www.gnu.
org/software/gettext/gettext.html
. The PHP functions are wrappers for the
gettext library. Detailed documentation is available on the Web <http://www.gnu.
org/manual/gettext/index .html>. The Gettext functions rely on translation
tables. These are usually given either .po or .mo extensions and are collected into
directories. There is a global area for these files, but you can override that directory using
bindtextdomain.


The Gettext functions were added to PHP by Alex Plotnick.


string bindtextdomain(string domain, string directory)


The bintextdomain function sets the path for a domain.


string dcgettext(string domain, string message, int category)

Free download pdf