--
Sourceforge
https://sourceforge.net/projects/civetweb/
---
You received this message because you are subscribed to the Google Groups "civetweb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to civetweb+u...@googlegroups.com.
To post to this group, send email to cive...@googlegroups.com.
Visit this group at http://groups.google.com/group/civetweb.
To view this discussion on the web visit https://groups.google.com/d/msgid/civetweb/82ae267e-cad9-484c-a16a-86bae75cb351%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Fri, Jan 3, 2014 at 10:03 AM, Tony Wilk <original...@gmail.com> wrote:In a nutshell:
I want to embed a web server, SQLite and php (ph7 or php5.4) into a Windows C++ application
I want to provide app. data to php (e.g. as superglobals)
I may want to use web sockets but would like to remove other stuff to reduce size a bit.
I don't care about licensing.
You'll have to assume I know what I'm doing ;)
...and that's about it.
Until summer 2013 mongoose was a web server with MIT license, and civetweb did not exist. Several people contributed to mongoose (reporting issues, proposing patches, etc.), but apparently there was only one author – he decided to switch to a commercial license in summer 2013. In the moment mongoose is still available with a GPL license alternatively. Civetweb is a fork created from mongoose when it still had a MIT license – basically civetweb has been created to retain the MIT license. Civetweb has more authors than just one (this also means, once can not simply change the license anymore).
Since that time, they are two different projects, inevitably increasingly diverging. An overview of what has been done with civetweb can be found here https://github.com/sunsetbrew/civetweb/blob/master/RELEASE_NOTES.md
I think, from your requirements ‘in a nutshell’ both would fit.
If size is an issue: In civetweb there are some new features within the Lua binding, so one should be able to do many things in Lua instead of PHP. Lua requires only a fraction of the resources as PHP.
So...
Is starting with Civet a good choice ?
or is there some 'x' in {mongoose, unknown_others...} that I should consider instead ?
There are quite some other servers – you probably know these (none complete) lists:
http://en.wikipedia.org/wiki/Comparison_of_web_server_software
http://en.wikipedia.org/wiki/Comparison_of_lightweight_web_servers
(By the way: civetweb is still missing there.)
Do you want/need a multi-threaded server?
Or would you prefer to use one thread of your host application as the server thread?
It could also be an option to separate the webserver and the host application into two different processes, and communicate by inter-process communication (e.g., TransactNamedPipe).