Forum OpenACS Development: Re: TCL calls from PHP?
From your question I take it PHP does not have a convenient interface for making calls to the Tcl interpretor, but AFAIK every AOLserver connection thread does and must have a Tcl interpretor whether you use it for much of anything or not, so Tcl is there to be called.
I am entirely unfamiliar with PHP and its implementation in AOLserver, but if you are able to extend it in C, worst case you should be able to set up a C function which lets you call arbitrary Tcl commands (via Tcl_Eval). But there may be better or easier ways than that, of course. I'd ask on the AOLserver list before hacking in something like that myself.
What I could envision e.g. for the moment is to use a PHP addressbook functionality in OpenACS and redirect the Database inserts (and reads, maybe) through TCL API, so both OpenACS and the PHP address book could add items, but you could view it quickly in a list-builder page (which is easy to generate).
I'm tossing out ideas here at the moment with a huge potential for trouble, but, as a matter of fact, OpenACS lacks functionality in a number of occasions, where (specialized) PHP products are further advanced. It is just a question of how to integrate these best.