HaXe PHP ile sunucu üzerinde bir XML dosyasını kaydetmek nasıl?

1 Cevap php

Ben sadece haXe gelişimi ile başlayan, ve PHP kanattan gitmek vermek istedim, ama zaten biraz karıştı duyuyorum.

PHP için derlenmiş haXe ile bir sunucuda bir klasöre XML dosyaları için bazı form verilerini kaydetmek için en iyi yolu nedir?

1 Cevap

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

sunucu üzerinde proje için uygun. htaccess dosyası yapma,

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.

Burada bir göz olmalıdır Api dosyalar şunlardır:

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