I certainly agree that PHP would serve as a great HMI for interacting with a TriPLC application but the original poster was trying to run Trilogi under Linux. Implementing everything Trilogi does (compilation, debugging, monitoring, emulation) would be impractical (if not impossible) to do in PHP.