Special Protocols for Links
In ExeOutput for PHP, pre-defined protocols are provided for hyperlinks within your applications, which can also be utilized for menu items.
Syntax:
<a href="[protocol][destination URI]">Your link</a>
List of predefined protocols¶
-
heopenit://
+ virtual path to the file you want to open with the external application associated with its filetype (for example,heopenit://mydoc.doc
will extract and openmydoc.doc
in Microsoft Word). -
heopenext://
+ path to an external file you want to open with the external application associated with its type (a file that is not compiled into the application but in the same folder as the EXE file). It can also be in a subfolder. -
heexternal://
+ a URL or a path to an application: this protocol lets you launch the application or the end user's default browser if it is a URL.
Examples¶
heopenit://
can be used for any document file such as executable program files, text files, Microsoft Office® files, etc, that are compiled in the EXE. These files are listed in the File Manager.
<a href="heopenit://mydocument.docx">Open this Word document</a>
heopenext://
can be used for any document file such as executable program files, text files, Microsoft Office® files, etc. These files are available outside the application, in the same folder as the EXE file.
<a href="heopenext://myprogram2.exe">Start another application</a>
Example to open a file in a subfolder named subdir
:
<a href="heopenext://Subdir/powerpoint%20demo.pptx">Open PowerPoint in subdir</a>
Tip
If a filename contains spaces, encode the filename properly, for example: my%20program.exe
.