0

Ok first of all I want to create a web server that can interact with php, Mysql or mango db and mobile applications. What do you think is better to use Java or Python? I would like some good articles about web servers and how to interact with php ... For example I managed to create an simple web server but I don't know how to run php on it , and how can I make a mobile app to connect on it... I would really appreciate some tips about these sort of things and some good tutorials ...

1 Answers1

1

You can use http://pear.php.net/package/HTTP_Server as webserver base. Executing PHP within that is as simple as running a CGI interpreter. You need the php-cgi binary and pass some environment variables and possibly the POST body. It's just important to invoke the php-cgi binary with the right environment parameters.

Also have a look at Nanoweb, an existing webserver in PHP. It comes with a mod_cgi implementation.

Community
  • 1
  • 1
mario
  • 144,265
  • 20
  • 237
  • 291