Re: how to call php from C?

From: Date: Mon, 23 Jun 2003 16:05:46 +0000
Subject: Re: how to call php from C?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152510@lists.php.net to get a copy of this message
user@lngs.infn.it wrote: > > Hello, > I have a working C program that runs like a cgi > by sending back a web page. I would like include in it > some authentication code by checking > > $au = $_SESSION['AuthenticatedUser'] > > previously set up by a php script.I don't like to recode > all in php because I expect a nasty performace slowdown. > > Can I call session_start() and so on from my C program? > Any example code? I'm not sure how you would go about doing this, a more natural solution IMHO would be to incorporate your C code into a PHP extension which would then give you access to the C library you have written directly in PHP. Cheers, Rob. -- .---------------------------------------------. | Worlds of Carnage - http://www.wocmud.org | :---------------------------------------------: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul. | `---------------------------------------------'

« previous php.general (#152510) next »