Re: Session var read by form C++ CGI prog ?

From: Date: Tue, 02 Sep 2003 22:48:46 +0000
Subject: Re: Session var read by form C++ CGI prog ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161499@lists.php.net to get a copy of this message
--- John Bryan <johnbryan@mac.com> 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. Hope that helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#161499) next »