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?
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
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...