On Tue, 2 Sep 2003 15:48:46 -0700 (PDT)
Chris Shiflett <[EMAIL PROTECTED]> wrote:

> --- John Bryan <[EMAIL PROTECTED]> wrote:
> > Was/am thinking I could use php to set 'session' variable(s) that
> > would also be visible to an existing cpp prog currently invoked
> > from a form.
> 
> I missed most of this thread, since it appeared to be off-topic, but you might
> consider changing the action attribute of your form to point to a PHP script
> that can call your CGI as needed. It's worth trying anyway, and PHP should
> already have the right privileges to execute it.
> 
> This PHP script could conveniently access the PHP session (which your CGI could
> do also, but with much more hassle) as well as all GET and POST data, and you
> could use it as a wrapper to your CGI. This would also make future transitions
> easier, if you forsee taking that path.

Something I used in the past was a php script communicating with a long running
application via sockets: the script would collect data, send it to the app for
processing which would pass it back to the php script which fpassthru() back to
the client. It was very fast too.

> 
> Hope that helps.
> 
> Chris
> 
> =====
> Become a better Web developer with the HTTP Developer's Handbook
> http://httphandbook.org/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 


____
Regards, Andu Novac

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to