There are two conceivable solutions: 1) write a GAP program from the PHP and do the output in the GAP program. Read the output from the GAP program. Procedure for run gap.sh < prog.g So, one computation corresponds to one GAP session.
2) Again use text files and use a system with have both of them running continuously on some infinite loop. After one text file "F" is created, create a second one "F.finish" indicating that F is finished and can be processed. Those are elementary ways, you have also the streams as possibility. But I would advise first for simple strategies before going for more complex harder to debug ones. Mathieu On Fri, Oct 11, 2013 at 11:41 AM, <szg...@szemerja-szasz.hu> wrote: > How can I exchange data between GAP and PHP? > > ______________________________**_________________ > Forum mailing list > Forum@mail.gap-system.org > http://mail.gap-system.org/**mailman/listinfo/forum<http://mail.gap-system.org/mailman/listinfo/forum> > _______________________________________________ Forum mailing list Forum@mail.gap-system.org http://mail.gap-system.org/mailman/listinfo/forum