# Embed PHP as a scripting language of windows application

- Thread: https://externals.io/message/2775
- Original archive: https://news-web.php.net/php.internals/2775
- Started by John Lim on 2003-06-25T11:35:04+00:00
- Messages: 5
- 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

---

## #2775 — John Lim — 2003-06-25T11:35:04+00:00

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

Hello,

I'm writing some windows apps that require a scripting language to control
various info. Has anyone had any experience or source code showing how to
embed PHP as a scripting language for a windows app? I'm
sure there's some neat way to link to php4ts.dll and pass a script to it.

Thanks again. John

---

## #2782 — George Schlossnagle — 2003-06-25T14:02:47+00:00

URL: https://externals.io/message/2775#2782 · In reply to: #2775

I have no win32 experience, but you should look at the embed SAPI.

George



> Hello,
>
> I'm writing some windows apps that require a scripting language to 
> control
> various info. Has anyone had any experience or source code showing how 
> to
> embed PHP as a scripting language for a windows app? I'm
> sure there's some neat way to link to php4ts.dll and pass a script to 
> it.
>
> Thanks again. John
>
>
>
> -- 
> 
> 
>
>
-- George Schlossnagle
-- Principal Consultant
-- OmniTI Computer Consulting, Inc.
-- +1.410.872.4910 x202
-- 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E  56C2 B2B9 262F 1100 A5A0

---

## #2790 — Derick Rethans — 2003-06-25T15:06:40+00:00

URL: https://externals.io/message/2775#2790 · In reply to: #2789

> Something that would be interesting would be to make it possible to use 
> PHP with the WSH (Windows Scripting Host)..
> I'm not sure if it's doable, but it sure would be nice :)
> 
> Python, perl, vbscript, javascript etc. work with the WSH.. It'd be cool 
> to include PHP in that list :P

Already works, there is the ActiveScripts SAPI in the download.

Derick

-- 
"Interpreting what the GPL actually means is a job best left to those
                    that read the future by examining animal entrails."
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 International PHP Magazine                          http://php-mag.net/

---

## #2789 — Oscar Rylin — 2003-06-25T15:07:14+00:00

URL: https://externals.io/message/2775#2789 · In reply to: #2775

Something that would be interesting would be to make it possible to use 
PHP with the WSH (Windows Scripting Host)..
I'm not sure if it's doable, but it sure would be nice :)

Python, perl, vbscript, javascript etc. work with the WSH.. It'd be cool 
to include PHP in that list :P

-- oscar
John Lim wrote:

>Hello,
>
>I'm writing some windows apps that require a scripting language to control
>various info. Has anyone had any experience or source code showing how to
>embed PHP as a scripting language for a windows app? I'm
>sure there's some neat way to link to php4ts.dll and pass a script to it.
>
>Thanks again. John

---

## #2898 — John Lim — 2003-06-27T16:52:37+00:00

URL: https://externals.io/message/2775#2898 · In reply to: #2790

Thanks for all the answers everyone. I will look into ActiveScripts. Looks
interesting.

"Derick Rethans" <derick@php.net> wrote in message
news:Pine.LNX.4.53.0306251706230.2213@jdi.jdimedia.nl...
> 
>
> > […]
>
> Already works, there is the ActiveScripts SAPI in the download.
>
> Derick
>
> --
> "Interpreting what the GPL actually means is a job best left to those
>                     that read the future by examining animal entrails."
> -------------------------------------------------------------------------
>  Derick Rethans                                 http://derickrethans.nl/
>  International PHP Magazine                          http://php-mag.net/
