rejetto forum

HFS PHP Support

0 Members and 1 Guest are viewing this topic.

Offline Flynsarmy

  • Occasional poster
  • *
    • Posts: 92
  • DENIED!
    • View Profile
    • Flynsarmy
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.


ebola

  • Guest
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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
I guess it's better to work on the expected way, then inventing new tricky ones.


Offline Fysack

  • Tireless poster
  • ****
    • Posts: 598
  • present picture
    • View Profile
    • Admin
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?
GOD CAN READ YOUR MIND


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile

Offline Fysack

  • Tireless poster
  • ****
    • Posts: 598
  • present picture
    • View Profile
    • Admin
hehe, i love you rejetto
GOD CAN READ YOUR MIND