FET Forum

FET Support (English) => Programming Help => Topic started by: venkat aadithan on December 16, 2017, 09:42:03 AM

Title: Implement fet in a web application
Post by: venkat aadithan on December 16, 2017, 09:42:03 AM
Hi, I need to generate timetable in a web application project , i need to do achieve this by fetching data from db to generate xml file and gives it to command line of fet . I'm strucking here "how to pass generated xml to fet cmd line in php and to get the result".
  :-\ :-\ :-\
Thanks in advance
Title: Re: Implement fet in a web application
Post by: Volker Dirr on December 16, 2017, 09:44:34 AM
Please write "fet-cl -?" in the terminal.
You will get a detailed description how to input the data and get the results by that command.

Please also check a php tutorial how to run an external prgramm.
For example here:
http://php.net/manual/en/function.exec.php
Title: Re: Implement fet in a web application
Post by: Liviu Lalescu on December 16, 2017, 10:40:29 AM
Yes, as Volker said, write "fet-cl.exe" or "fet-cl" or "./fet-cl" (the "-?" part is in fact an unrecognized option of FET command-line).

Or read the README file from the FET archive.

The easiest FET command-line usage is "fet-cl --inputfile=data.fet".
Title: Re: Implement fet in a web application
Post by: venkat aadithan on December 19, 2017, 12:17:34 PM
Thanks, i got an idea now, how to implement this :) :) :)