# SAPI Module Development.

- Thread: https://externals.io/message/21021
- Original archive: https://news-web.php.net/php.internals/21021
- Started by Ben Trafford on 2005-12-03T17:41:24+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #21021 — Ben Trafford — 2005-12-03T17:41:24+00:00

URL: https://externals.io/message/21021#21021

Hi!

	I'm starting work on a SAPI implementation for the TinyMUX server 
(http://www.tinymux.org). Basically, it's like a MUD server -- a 
telnet-based, textual roleplaying game.

	TinyMUX has a built-in programming language usually referred to as 
"MUXcode" or "softcode." Unfortunately, it's extremely limited. I'd like to 
create an internal server function called php() that allows you to pass MUX 
variables to PHP scripts, and receive a textual response from PHP. It seems 
that the simplest way to do this would be to directly integrate PHP into 
TinyMUX via a SAPI module.

	However, I can't find any documentation on SAPI, and most of the existing 
SAPI modules are largely undocumented. Is there anybody who'd be willing to 
chat with me off-list about my implementation? Or could anyone point me to 
an API manual for SAPI modules in PHP?

	Thanks!

--->Ben

---

## #21023 — Sara Golemon — 2005-12-03T18:10:00+00:00

URL: https://externals.io/message/21021#21023 · In reply to: #21021

> I'm starting work on a SAPI implementation for the TinyMUX server 
> (http://www.tinymux.org). Basically, it's like a MUD server -- a 
> telnet-based, textual roleplaying game.
>
What you want is the embed SAPI which can simply be linked against like any 
other library.

At the moment, the only documentation available (that I know of) are some 
slides Wez prepared for a conferrence two years ago.  Dated perhaps, but 
extremely relevant and very easy to follow.

http://www.php-kongress.de/2003/slides/internals_track/wez_embedding-php.pdf

-Sara

---

## #21025 — Ben Trafford — 2005-12-03T19:24:32+00:00

URL: https://externals.io/message/21021#21025 · In reply to: #21023

At 01:10 PM 12/3/2005, Sara Golemon wrote:
>What you want is the embed SAPI which can simply be linked against like 
>any other library.
>
>At the moment, the only documentation available (that I know of) are some 
>slides Wez prepared for a conferrence two years ago.  Dated perhaps, but 
>extremely relevant and very easy to follow.

         And it has code samples!

         Sara, you're a lifesaver. Thank you!

--->Ben

---

## #21028 — Wez Furlong — 2005-12-04T00:11:12+00:00

URL: https://externals.io/message/21021#21028 · In reply to: #21025

You're welcome ;-)

--Wez.


>
> At 01:10 PM 12/3/2005, Sara Golemon wrote:
> > […]
>
>          And it has code samples!
>
>          Sara, you're a lifesaver. Thank you!
>
> --->Ben
