Author: Mathieu H.
  Main    Download    Documentation    Screenshots   

Installation

You can install PHP/TK in this way:

$ tar -xvzf php-tk-X.X.X.tar.gz
$ cd tk
$ phpize
$ ./configure && make
(if possible) # make install

Upon success, this will create tk.so and put it into the modules/ and/or .libs/ directory within the tk/ source. Move this shared extension (tk.so) into the PHP extensions directory, and adjust php.ini accordingly.

There is many different way, please consult this page to know more.
Note: You can compile PHP/TK directly in PHP: place the extention into the ext/ directory found in the PHP sources, and consult this page.

Prototypes

Global functions

    proto Tk_mainLoop ()
    proto Tk_Exit ()
    proto string Tk_Callback (String function_name [, mixed arg1 [...]])
    proto Tk_Debug ()
    proto mixed Tk_Shell (String tk_command [,...])
    proto string Tk_Addslashes (String str)
    proto array Tcl_listToArray (String tcl_list)

    proto mixed Tk_AppName (String new_name)
    proto mixed Tk_Bisque ([...])
    proto mixed Tk_ChooseColor ([...])
    proto mixed Tk_ChooseDirectory ([...])
    proto mixed Tk_Dialog ([...])
    proto mixed Tk_EventAdd ([...])
    proto mixed Tk_EventDelete ([...])
    proto mixed Tk_EventGenerate ([...])
    proto mixed Tk_EventInfo ([...])
    proto mixed Tk_FocusFollowsMouse ([...])
    proto mixed Tk_FocusNext ([...])
    proto mixed Tk_FocusPrev ([...])
    proto mixed Tk_FontFamilies ([...])
    proto mixed Tk_FontNames ([...])
    proto mixed Tk_GetOpenFile ([...])
    proto mixed Tk_GetSaveFile ([...])
    proto mixed Tk_ImageNames ([...])
    proto mixed Tk_ImageTypes ([...])
    proto mixed Tk_MessageBox ([...])
    proto mixed Tk_OptionAdd ([...])
    proto mixed Tk_OptionClear ([...])
    proto mixed Tk_OptionGet ([...])
    proto mixed Tk_OptionMenu ([...])
    proto mixed Tk_OptionReadFile ([...])
    proto mixed Tk_Popup ([...])
    proto mixed Tk_Scaling ([...])
    proto mixed Tk_SelectionClear ([...])
    proto mixed Tk_SelectionGet ([...])
    proto mixed Tk_SelectionHandle ([...])
    proto mixed Tk_SelectionOwn ([...])
    proto mixed Tk_Send ([...])
    proto mixed Tk_SetPalette ([...])
    proto mixed Tk_UseInputMethods ([...])


Widget class
    proto Object Tk ([String path])
    proto Object Bitmap ([Object container, [...]])
    proto Object Button ([Object container, [...]])
    proto Object Canvas ([Object container, [...]])
    proto Object Checkbutton ([Object container, [...]])
    proto Object Entry ([Object container, [...]])
    proto Object Font ([Object container, [...]])
    proto Object Frame ([Object container, [...]])
    proto Object Label ([Object container, [...]])
    proto Object Labelframe ([Object container, [...]])
    proto Object Listbox ([Object container, [...]])
    proto Object Menu ([Object container, [...]])
    proto Object Menubutton ([Object container, [...]])
    proto Object Message ([Object container, [...]])
    proto Object Panedwindow ([Object container, [...]])
    proto Object Photo ([Object container, [...]])
    proto Object Radiobutton ([Object container, [...]])
    proto Object Scale ([Object container, [...]])
    proto Object Scrollbar ([Object container, [...]])
    proto Object Spinbox ([Object container, [...]])
    proto Object Text ([Object container, [...]])
    proto Object Textcopy ([Object container, [...]])
    proto Object Textcut ([Object container, [...]])
    proto Object Textpaste ([Object container, [...]])
    proto Object Toplevel ([Object container, [...]])


Image functions
    proto mixed Image->delete (Object image, [...])
    proto mixed Image->height (Object image)
    proto mixed Image->inuse (Object image)
    proto mixed Image->type (Object image)
    proto mixed Image->width (Object image)


Font functions
    proto mixed Font->actual (Object font, [...])
    proto mixed Font->configure (String option, [...])
    proto mixed Font->delete (Object font, [...])
    proto mixed Font->measure (Object font, [...], String text)
    proto mixed Font->metrics (Object fnnt, [...])


Others class functions
    proto string Widget->getid ()
    proto mixed Widget->activate ([...])
    proto mixed Widget->add ([...])
    proto mixed Widget->addtag ([...])
    proto mixed Widget->bbox ([...])
    proto mixed Widget->bell ([...])
    proto mixed Widget->bind ([...])
    proto mixed Widget->bindtags ([...])
    proto mixed Widget->blank ([...])
    proto mixed Widget->canvasx ([...])
    proto mixed Widget->canvasy ([...])
    proto mixed Widget->cget ([...])
    proto mixed Widget->clipboardAppend ([...])
    proto mixed Widget->clipboardClear ([...])
    proto mixed Widget->clipboardGet ([...])
    proto mixed Widget->clone ([...])
    proto mixed Widget->compare ([...])
    proto mixed Widget->configure ([...])
    proto mixed Widget->coords ([...])
    proto mixed Widget->copy ([...])
    proto mixed Widget->count ([...])
    proto mixed Widget->create ([...])
    proto mixed Widget->curselection ([...])
    proto mixed Widget->data ([...])
    proto mixed Widget->dchars ([...])
    proto mixed Widget->debug ([...])
    proto mixed Widget->delete ([...])
    proto mixed Widget->delta ([...])
    proto mixed Widget->deselect ([...])
    proto mixed Widget->destroy ([...])
    proto mixed Widget->dlineinfo ([...])
    proto mixed Widget->dtag ([...])
    proto mixed Widget->dump ([...])
    proto mixed Widget->editModified ([...])
    proto mixed Widget->editRedo ([...])
    proto mixed Widget->editReset ([...])
    proto mixed Widget->editSeparator ([...])
    proto mixed Widget->editUndo ([...])
    proto mixed Widget->entrycget ([...])
    proto mixed Widget->entryconfigure ([...])
    proto mixed Widget->find ([...])
    proto mixed Widget->flash ([...])
    proto mixed Widget->focus ([...])
    proto mixed Widget->forget ([...])
    proto mixed Widget->fraction ([...])
    proto mixed Widget->get ([...])
    proto mixed Widget->gettags ([...])
    proto mixed Widget->grab ([...])
    proto mixed Widget->grabCurrent ([...])
    proto mixed Widget->grabRelease ([...])
    proto mixed Widget->grabSet ([...])
    proto mixed Widget->grabStatut ([...])
    proto mixed Widget->grid ([...])
    proto mixed Widget->gridAnchor ([...])
    proto mixed Widget->gridBbox ([...])
    proto mixed Widget->gridColumnconfigure ([...])
    proto mixed Widget->gridConfigure ([...])
    proto mixed Widget->gridForget ([...])
    proto mixed Widget->gridInfo ([...])
    proto mixed Widget->gridLocation ([...])
    proto mixed Widget->gridPropagate ([...])
    proto mixed Widget->gridRemove ([...])
    proto mixed Widget->gridRowconfigure ([...])
    proto mixed Widget->gridSize ([...])
    proto mixed Widget->gridSlaves ([...])
    proto mixed Widget->icursor ([...])
    proto mixed Widget->identify ([...])
    proto mixed Widget->imageCget ([...])
    proto mixed Widget->imageConfigure ([...])
    proto mixed Widget->imageCreate ([...])
    proto mixed Widget->imageNames ([...])
    proto mixed Widget->index ([...])
    proto mixed Widget->insert ([...])
    proto mixed Widget->invoke ([...])
    proto mixed Widget->itemcget ([...])
    proto mixed Widget->itemconfigure ([...])
    proto mixed Widget->lower ([...])
    proto mixed Widget->markGravity ([...])
    proto mixed Widget->markNames ([...])
    proto mixed Widget->markNext ([...])
    proto mixed Widget->markPrevious ([...])
    proto mixed Widget->markSet ([...])
    proto mixed Widget->markUnset ([...])
    proto mixed Widget->move ([...])
    proto mixed Widget->nearest ([...])
    proto mixed Widget->pack ([...])
    proto mixed Widget->packConfigure ([...])
    proto mixed Widget->packForget ([...])
    proto mixed Widget->packInfo ([...])
    proto mixed Widget->packPropagate ([...])
    proto mixed Widget->packSlaves ([...])
    proto mixed Widget->panecget ([...])
    proto mixed Widget->paneconfigure ([...])
    proto mixed Widget->panes ([...])
    proto mixed Widget->place ([...])
    proto mixed Widget->placeConfigure ([...])
    proto mixed Widget->placeForget ([...])
    proto mixed Widget->placeInfo ([...])
    proto mixed Widget->placeSlaves ([...])
    proto mixed Widget->post ([...])
    proto mixed Widget->postcascade ([...])
    proto mixed Widget->postscript ([...])
    proto mixed Widget->proxy ([...])
    proto mixed Widget->proxyCoord ([...])
    proto mixed Widget->proxyForget ([...])
    proto mixed Widget->proxyPlace ([...])
    proto mixed Widget->put ([...])
    proto mixed Widget->raise ([...])
    proto mixed Widget->read ([...])
    proto mixed Widget->redither ([...])
    proto mixed Widget->replace ([...])
    proto mixed Widget->sash ([...])
    proto mixed Widget->sashCoord ([...])
    proto mixed Widget->sashMark ([...])
    proto mixed Widget->sashPlace ([...])
    proto mixed Widget->scale ([...])
    proto mixed Widget->scanDragto ([...])
    proto mixed Widget->scanMark ([...])
    proto mixed Widget->search ([...])
    proto mixed Widget->see ([...])
    proto mixed Widget->selectAdjust ([...])
    proto mixed Widget->selectClear ([...])
    proto mixed Widget->selectFrom ([...])
    proto mixed Widget->selectItem ([...])
    proto mixed Widget->selectTo ([...])
    proto mixed Widget->selectionAdjust ([...])
    proto mixed Widget->selectionAnchor ([...])
    proto mixed Widget->selectionClear ([...])
    proto mixed Widget->selectionElement ([...])
    proto mixed Widget->selectionFrom ([...])
    proto mixed Widget->selectionIncludes ([...])
    proto mixed Widget->selectionPresent ([...])
    proto mixed Widget->selectionRange ([...])
    proto mixed Widget->selectionSet ([...])
    proto mixed Widget->selectionTo ([...])
    proto mixed Widget->set ([...])
    proto mixed Widget->size ([...])
    proto mixed Widget->tagAdd ([...])
    proto mixed Widget->tagBind ([...])
    proto mixed Widget->tagCget ([...])
    proto mixed Widget->tagConfigure ([...])
    proto mixed Widget->tagDelete ([...])
    proto mixed Widget->tagLower ([...])
    proto mixed Widget->tagNames ([...])
    proto mixed Widget->tagNextrange ([...])
    proto mixed Widget->tagPrevrange ([...])
    proto mixed Widget->tagRaise ([...])
    proto mixed Widget->tagRanges ([...])
    proto mixed Widget->tagRemove ([...])
    proto mixed Widget->toggle ([...])
    proto mixed Widget->transparencyGet ([...])
    proto mixed Widget->transparencySet ([...])
    proto mixed Widget->type ([...])
    proto mixed Widget->unpost ([...])
    proto mixed Widget->validate ([...])
    proto mixed Widget->windowCget ([...])
    proto mixed Widget->windowConfigure ([...])
    proto mixed Widget->windowCreate ([...])
    proto mixed Widget->windowNames ([...])
    proto mixed Widget->wmAspect ([...])
    proto mixed Widget->wmAttributes ([...])
    proto mixed Widget->wmClient ([...])
    proto mixed Widget->wmColormapwindows ([...])
    proto mixed Widget->wmCommand ([...])
    proto mixed Widget->wmDeiconify ([...])
    proto mixed Widget->wmFocusmodel ([...])
    proto mixed Widget->wmFrame ([...])
    proto mixed Widget->wmGeometry ([...])
    proto mixed Widget->wmGrid ([...])
    proto mixed Widget->wmGroup ([...])
    proto mixed Widget->wmIconbitmap ([...])
    proto mixed Widget->wmIconify ([...])
    proto mixed Widget->wmIconmask ([...])
    proto mixed Widget->wmIconname ([...])
    proto mixed Widget->wmIconposition ([...])
    proto mixed Widget->wmIconwindow ([...])
    proto mixed Widget->wmMaxsize ([...])
    proto mixed Widget->wmMinsize ([...])
    proto mixed Widget->wmOverrideredirect ([...])
    proto mixed Widget->wmPositionfrom ([...])
    proto mixed Widget->wmProtocol ([...])
    proto mixed Widget->wmResizable ([...])
    proto mixed Widget->wmSizefrom ([...])
    proto mixed Widget->wmStackorder ([...])
    proto mixed Widget->wmState ([...])
    proto mixed Widget->wmTitle ([...])
    proto mixed Widget->wmTransient ([...])
    proto mixed Widget->wmWithdraw ([...])
    proto mixed Widget->write ([...])
    proto mixed Widget->xview ([...])
    proto mixed Widget->xviewMoveto ([...])
    proto mixed Widget->xviewScroll ([...])
    proto mixed Widget->yposition ([...])
    proto mixed Widget->yview ([...])
    proto mixed Widget->yviewMoveto ([...])
    proto mixed Widget->yviewScroll ([...])