[EMAIL PROTECTED] 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. | `---------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php