English 中文(简体)
Writing a Web Application in Haxe without Apache and PHP?
原标题:
  • 时间:2010-03-28 21:29:32
  •  标签:
  • haxe

Haxe has Apache httpd modules and can compile to PHP code. These are 2 options I know to make a web application that runs on the server. You can start a http server with nekotools, but this is supposed to be used for development only.

Are there any more options?

I can always use the NekoVM from within a C or C++ program, running a web server or interfacing to FastCGI. Or compile to C++, using a FastCGI or web server library. But I want to hear about solutions that are actually used.

I have a VPS with nginx, so no mod_neko or mod_tora. PHP isn t a problem, but I d rather wouldn t use it (for irrational reasons).

最佳回答

I m continuing to keep hxNode up to date and expanding it with the node.js spec. I m using it for my own projects and debugging it as I come across stuff.

Currently, hxNode, has the node.js api defined in Haxe, this is the standard node.js asynchronous API. Also, I ve started to recreate the Haxe standard API using this API, so for example, js.FileSystem has been implemented, this makes use of the fact that latest versions of node can call fs module syncronously.

Other things which I m working on with this API, servlet s sitting on top, and mongo bindings based on chriskv s mongo native drivers.

bd

问题回答

More correctly there is an Apache module for the nekoVM. (You do need necessarily haxe to produce neko binaries)

To your question:

  • As far as I know there is currently no possibility to use the C++ target for webserver application, but some people are playing arround with some stuff.
  • As you said, you could use PHP
  • mod_tora or mod_neko on a Apache setup. (Why not use Apache?)
  • OR: the probably most interessting thing for you be: Link 1 and Link 2 (neko as cgi / fastcgi)

hxNode uses node.js. Don t know if anybody uses hxNode, but node.js got some good press lately.





相关问题
Writing a Web Application in Haxe without Apache and PHP?

Haxe has Apache httpd modules and can compile to PHP code. These are 2 options I know to make a web application that runs on the server. You can start a http server with nekotools, but this is ...

actionscript development on mac

I know of FlashDevelop for windows but how about developing actionscript or haxe on a mac? besides flex plugin for eclipse, flex builder and FDT is there anny good IDE out there for actionscript ...

Duplicate mousewheel events in Flash on XP Firefox

In Firefox 3, all the mouseWheel events in my Haxe/Flash app are firing twice. This only seems to happen in the Windows version of Firefox; it doesn t happen in IE or Opera, and it doesn t happen in ...

perspective in Flash

I have an 2D image that I want to draw in true 3D, and spin around its centre. I m using Actionscript 3 code (actually Haxe, no IDE), and I m struggling to discover the values by experimentation. I ...

How to save an XML file on server with Haxe PHP?

I am just starting out with Haxe development, and wanted to give the PHP side a go, but am already a little confused. What is the best way to save some form data to XML files in a folder on a server ...

热门标签