Need help for web server which executes PHP pages

From: Date: Wed, 25 Mar 2015 15:07:43 +0000
Subject: Need help for web server which executes PHP pages
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-20965@lists.php.net to get a copy of this message
Sir,              I am creating a WEB SERVER in C which only executes PHP pages. Because I have created a website in PHP.  So i need a webserver of my OWN. I know php provides a built in server. But this is for my study purpose. I use php5-cgi script to execute(interpret) php script, by calling :  (execl("/usr/bin/php5-cgi", "php5-cgi", NULL);) my problem i don't know how to maintain Session(PHPSESSID)/ COOKIE. I get COOKIE:PHPSESSID=12334444444  from browser. But i don't know how to pass that to the PHP5-CGI . To pass Query strings i used:    putenv("QUERY_STRING="); But i don't see any ways or Documentations to pass COOKIES. I asked everywhere in communities. But no one knows about it.   Could you please help me. Any kind of information about a WEB SERVER is acceptable. If you want am ready to send all my server code. Link to full question: How to send COOKIE, PHPSESSID from my own webserver to php5-cgi script |   | |   | |   |   |   |   |   | | How to send COOKIE, PHPSESSID from my own webserver t...I am developing a Webserver in C. I know how to pass environment variables to ph5-cgi, eg: putenv("QUERY_STRING="); putenv("REQUEST_METHOD=GET"); putenv("RE... | | | | View on stackoverflow.com | Preview by Yahoo | | | |   |     Hope fully,   Melvin Jose                        India

« previous php.webmaster (#20965) next »