Comments (6)
Python tested and works fine with Mongoose, the config file is:
cgi_interpreter C:\python27_32bit\python.exe
cgi_pattern **.py$|**.pyc$
Example py script:
import sys
print("Content-Type: text/html")
print("")
print("Hello world from Python!<br>")
print("Python version: %s" % sys.version)
Original comment by [email protected]
on 17 Jan 2013 at 7:45
from phpdesktop.
Perl also works fine, the config file is:
cgi_interpreter perl-5.16.2.1-32bit\perl\bin\perl.exe
cgi_pattern **.pl$
Example perl script:
print "Content-Type: text/html\n";
print "\n";
print "Hello World from Perl!<br>";
print "Perl version: " . $^V;
Original comment by [email protected]
on 17 Jan 2013 at 7:54
from phpdesktop.
Add index_files option to mongoose.conf so that script is executed
immediately without displaying directory listing:
index_files index.py,index.pyc
The same for perl & ruby.
Original comment by [email protected]
on 17 Jan 2013 at 8:02
from phpdesktop.
Ruby works fine, example config:
cgi_interpreter ruby-1.9.3-p362-i386-mingw32\bin\ruby.exe
cgi_pattern **.rb$
index_files index.rb
Example script:
puts "Content-Type: text/html"
puts ""
puts "Hello world from Ruby!<br>"
puts "Ruby version: ", RUBY_VERSION
Output:
Hello world from Ruby!
Ruby version: 1.9.3
Original comment by [email protected]
on 17 Jan 2013 at 8:09
from phpdesktop.
Examples for Perl, Python & Ruby created, see this wiki page for downloads:
http://code.google.com/p/phpdesktop/wiki/EmbeddingOtherScriptingLanguages
Original comment by [email protected]
on 19 Jan 2013 at 11:29
- Changed state: Fixed
from phpdesktop.
Project will move to Github. Find this issue at the new address (soon):
https://github.com/cztomczak/phpdesktop/issues/16
Original comment by [email protected]
on 24 Aug 2015 at 3:16
from phpdesktop.
Related Issues (20)
- PHPDesktop with Chromium (different solution, take a look please) HOT 22
- Invalid temp directory on Windows 8 - permission denied to write a session file or to upload a file HOT 14
- Option to start app maximized HOT 5
- System tray icon for application HOT 9
- Custom window themes using HTML 5 HOT 8
- Allow for multiple CGI interpreters - a mix of PHP/Python/Ruby/Perl scripts running in one application HOT 5
- Website Incorrect Link to CEFPython HOT 2
- HOW TO INCLUDE OCI8 EXTENSION TO CONNECT TO ORACLE? HOT 1
- MSIE: Cannot Copy and Paste html content with ctrl + c HOT 11
- Expose useful Windows API functions to Javascript HOT 9
- Add sqlite example HOT 3
- Error when folder path contains special characters (ą, ć) HOT 21
- Move extensions to the php executable directory - problems finding ext on Win XP HOT 7
- Provide binaries for both PHP 5.4 and PHP 5.5 HOT 3
- FATAL error HOT 1
- HIDE MY PHP CODE HOT 1
- Javascript API to set fullscreen HOT 3
- Add an example of setting temp dir on Win8 to solve tmp dir problems on this OS. HOT 24
- Path containing spaces causes Error 500 when spawning CGI processes HOT 3
- Example of setting temp dir for Windows 8
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.