Comments (13)
Problem also exists with the Thread Safe version of PHP.
Original comment by [email protected]
on 15 Jan 2013 at 5:48
from phpdesktop.
One of the options is to embed embed a web-server like Mongoose, which
is written in C,only 140 KB, with CGI support, it is cross-platform and
MIT licensed, this is the only option for Internet Explorer engine:
http://en.wikipedia.org/wiki/Mongoose_(web_server)
Wich Chrome we can implement a custom scheme handler, thus making web-server
an optional thing, we could go with direct PHP API calls to execute scripts,
but this would have to be done in a multi-threaded manner, CEF would need to
have a multi-threaded message loop.
Original comment by [email protected]
on 15 Jan 2013 at 6:03
- Changed title: Embed a web-server that can handle multiple requests at the same time
from phpdesktop.
Mongoose official website is at:
http://code.google.com/p/mongoose/
Original comment by [email protected]
on 15 Jan 2013 at 6:11
from phpdesktop.
Mongoose PHP example (available in Downloads) comes with a Thread Safe
version of PHP, as I see "php5ts.dll".
Original comment by [email protected]
on 15 Jan 2013 at 6:17
from phpdesktop.
I've tested test1.php and test2.php with Mongoose and it works great.
Original comment by [email protected]
on 15 Jan 2013 at 6:19
from phpdesktop.
The question is whether we should embed Mongoose directly in our application,
or distribute "Mongoose.exe" along with "mongoose.conf" & "php-cgi.exe". When
running Mongoose.exe I don't see php-cgi.exe in the processes, maybe if we
embed through the C API we won't have any additional processes except the
"phpdesktop-msie.exe", that would be great, if anything hangs up there won't
be any gargage still running in the background.
Original comment by [email protected]
on 15 Jan 2013 at 6:25
from phpdesktop.
"php-cgi.exe" appears in processes only while php script is running.
Original comment by [email protected]
on 15 Jan 2013 at 7:11
from phpdesktop.
Original comment by [email protected]
on 16 Jan 2013 at 5:54
- Added labels: NextRelease
from phpdesktop.
PHP web-server is not reliable, it sometimes doesn't start for
unknown reason.
Original comment by [email protected]
on 19 Jan 2013 at 4:35
from phpdesktop.
Mongoose allows us to log the coming http requests directly to application's
debugging console.
Original comment by [email protected]
on 19 Jan 2013 at 2:58
from phpdesktop.
Mongoose options:
https://github.com/valenok/mongoose/wiki/Manual
We might consider adding these to settings.json:
access_log_file
enable_directory_listing
error_log_file
extra_mime_types
num_threads
url_rewrite_patterns
Create a separate issue for adding this options.
Original comment by [email protected]
on 19 Jan 2013 at 4:02
from phpdesktop.
This feature was added in revision 302ce0d6e6e3.
Original comment by [email protected]
on 19 Jan 2013 at 5:58
- Changed state: Fixed
from phpdesktop.
Project will move to Github. Find this issue at the new address (soon):
https://github.com/cztomczak/phpdesktop/issues/14
Original comment by [email protected]
on 24 Aug 2015 at 3:14
from phpdesktop.
Related Issues (20)
- Chrome 33 release (CEF branch 1750) HOT 2
- Change mouse cursor indicator during loading of a web page in Chrome 33 and later branches HOT 1
- Help - Add settings disabled_maximinize_button in popup
- Option in settings.json to use newer IE version embedded HOT 1
- PHP Desktop X Chrome - an implementation of phpdesktop for Mac/Linux using Python and CEF Python HOT 6
- I am using html2pdf for pdf load... After pdf file print redirect anothe php page...
- I am using html2pdf for pdf load... After pdf file print redirect anothe php page...
- I am using html2pdf for pdf load... After pdf file print redirect anothe php page... My code works in browser... But not work in phpdesktop IE..
- I am using html2pdf for pdf load... After pdf file print redirect anothe php page... My code works in browser... But not work in phpdesktop IE.. Plz solve that problem
- Compiling using Mingw
- html2pdf not support
- phpdesktop application very slow
- Ie not support designing and add registry code also useless
- convert a html to pdf using html2pdf generation is not working in chrome browser
- Pdf not work in chrome...
- pdf file not support in chrome
- A way to launch external processes/servers during startup or later, and automatic shutdown of these processes when app exits HOT 2
- Certificates
- Allow to listen on all ip addresses available HOT 1
- 1>main.cpp(180): error C2440: 'initializing' : cannot convert from 'const _json_value' to 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpdesktop.