Page 1 of 1

Source file public?

Posted: Tue Sep 29, 2020 8:39 am
by Marc Vanzegbroeck
Hi,

i just installed mod_harbour to play with it.
I noticed that it directly runs the PRG-files without compiling.
Does that mean thay anyone can see the source?

Re: Source file public?

Posted: Tue Sep 29, 2020 9:11 am
by Antonio Linares
Marc,

mod_harbour can use PRGs and HRBs files too. HRBs are binary files. To build a HRB file from a PRG file do:

harbour -gh -n testhrb.prg

Even if you use PRGs nobody can see them, in the same way as when you use PHP files, the users can't read them.
Because Apache will provide the PRG to mod_harbour and it will return the result of the PRG once processed.