Code Monkey home page Code Monkey logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 2, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.