English 中文(简体)
How to save an XML file on server with Haxe PHP?
原标题:
  • 时间:2009-12-14 10:28:39
  •  标签:
  • php
  • haxe

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 with Haxe compiled to PHP?

最佳回答

Well you can do it two ways. Make the website form in haxe, which includes:

making proper .htaccess file for the project on server,

writting a Main class (that htaccess will be pointing) which will take a request, and return either a form html document or will take the data from the form...

then put that data into xml format, and finally put that data into a file.

Here are Api files you should have a look at:

File methods for writting to a file

Web class that will get request data and fire up proper class and function, getURI, getMethod, getParams

Template class for generating simple html / very simple

Depending on complexity of xml you may want to use a specialized class

And the second way is almost the same, but you only compile to one file. And in your html form, you put your action link to the php filed that came out of compilation...

问题回答

暂无回答




相关问题
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 ...

热门标签