I have a .vbs file that executes a .jsx script.
Set myInDesign = CreateObject("InDesign.Application")
Msgbox("This message from Vbscript")
I can run this script through command prompt using the cscript command. Is there a way to execute this file from a html page or using PHP ?
With InDesign CC, you can even display HTML pages from within a panel: Introducing HTML5 extensions. On the other hand, PHP supports COM - the interface used by VisualBasic. If I were a PHP programmer, I'd take the PHP and COM - Manual as starting point.
For server scenarios Adobe also offers an InDesign Server that you can address with SOAP. Besides being optimized for faceless access, the server also has the benefit of an appropriate license for such use cases.