Thanx for the feedback -- the purpose of supporting PHP scripts is specific
to allowing users to build their own scripts to drive an application ... if
the ability to provide dynamic application behavior thru scripting wasn't
required I would just hardcode the values.

Basically the scripts have simple math statements that get called about 60
times a second, each call updates a variable to which the application uses
in staging a graphic element on the screen.

I have a parse/executor in place today but rather than enhance and build on
it I want to ditch my work and incorporate something more mainstream -- I
like PHP and thought to go that route.

Just came across sapi/embed and am now looking into that direction. Do you
know where I can find the API docs for the zend_ functions? I can't seem to
find them online. I generally will need to
 1. set my 'C' variables in the zend symbol table, I will use
zend_hash_update for that
 2. run a function in the user supplied script that updates the variables
 3. read the updated variables and change the application graphics

I feel I am almost there but need more on the zend_ stuff.

TIA
Brian

"Marcus BöRger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello BrianS,
>
> Saturday, August 9, 2003, 10:33:02 PM, you wrote:
>
> B> I am sure this has been asked dozens of times so please forgive if this
is
> B> repetitive.
>
> B> I have an application from which I would like to incorporate running
> B> scripts. I saw that I can pass files to php.exe but this is more for a
batch
> B> process and so my application wouldn't have access to any script scope
> B> variables.
> B> What I want to do is to load a script, run portions every few seconds
and
> B> read changed varibles so as to alter the behaviors of the application
in
> B> time.
>
> B> I've looked at incorporating use of the php DLL but could find no
> B> documentation for the many functions exposed.
>
> B> Is Zend API what I should be looking at?
>
>
> B> Any input would be greatly appreciated.
>
> Why doing a so complex solution?
> Why not simply use ext/dba or ext/sqlite or an external database to store
> those variables?
>
> -- 
> Best regards,
>  Marcus                            mailto:[EMAIL PROTECTED]
>



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to