rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Flynsarmy on August 31, 2008, 04:53:46 AM

Title: HFS PHP Support
Post by: Flynsarmy on August 31, 2008, 04:53:46 AM
A thought just occurred to me as to how to get PHP working with HFS.
Would it be possible to compile the template the way HFS currently does,
but rather than display online it would instead print the output to a text
file of random name in the HFS directory then call php.exe on that file
(outputting to the same file) then HFS simply copies the text file to
output.

eg.
HFS compiles to c:/<hfsdir>/12345.tmp
HFS calls: "c:/php/php.exe" -f "c:/<hfs dir>/12345.tmp" > 12345.tmp
HFS reads 12345.tmp file and prints to output

Of course the user would need to have PHP installed and in some option
somewhere they'd need to specify the location of the php.exe executable.
Title: Re: HFS PHP Support
Post by: ebola on August 31, 2008, 07:18:34 AM
hi

atm HFS can not start / run external programs.
This is a regularily asked feature (run a AV to check new UL, generate SHA of new file, ...) - but a security issue too.


ebola
Title: Re: HFS PHP Support
Post by: rejetto on August 31, 2008, 01:09:33 PM
I guess it's better to work on the expected way, then inventing new tricky ones.
Title: Re: HFS PHP Support
Post by: Fysack on September 05, 2008, 12:34:44 AM
Great! .. i have a tricky one to.
I want to play the turned based game, ufo xcom enemy unknown with a friend, true the web.
This is what i imagination:

When you play a game and save, you get an saved game file in a folder.
That folder you share in HFS as a real folder.
Then the gamebuddy load his game from that folder. (with some kind of folder syncronisation program maybe??)
Then the gamebuddy saves his turn in his realfolder, and so on, and so on

Possible?
Title: Re: HFS PHP Support
Post by: rejetto on September 05, 2008, 10:25:47 AM
sure thing
Title: Re: HFS PHP Support
Post by: Fysack on September 07, 2008, 12:58:00 AM
hehe, i love you rejetto