EZK Scripting language provides an existing user ways of displaying contents (video, audio, pictures, playlists, etc) with many advanced and personal features.
The EzLink NG EZK host runs on port TCP 8888 and provides dynamic server
pages to the browser or player, just like ASP and PHP do.
Unlike PHP and ASP, EZK is oriented to graphics and media content, providing
functions to simplify and speedup development as well as navigation processes,
in result of optimimal viewing experience.
Any EZK script can be opened and changed in a text editor. But in order to improve effiency of developing, and since not everyone knows a language at first, an EZK editor is also included helping the developer in many ways.
Hello world example:
| EZK Script source: | Output |
| <% ezk.Output "Hello World!" %> |
Hello World! |
The <% and %> tags represent start and end of scripting code respectively.
Just like ASP in this case.
Anything outside these tags will be sent statically to the client. Here's an example:
| EZK Script source: | Output |
|
<html> <head> <title>Introduction</title> </head> <body> <% ezk.Output Now() %> </body> </html> |
<html> <head> <title>Introduction</title> </head> <body> The time is: 2/8/2005 4:06:37 AM </body> </html> |
EZK Scripting is executed using standard VBScript or JavaScript code. That means that internal VBScript variables and functions can be used in EZK as well.
Functions such as:
FOR...NEXT, DO...LOOP, SUBrotines, FUNCTIONS, Date and time functions and
variables like NOW(), DATE(), TIME(), GOTO's, ON ERROR, ERR object, etc, etc,
etc can be used in any EZK script
Naturally, you can also use (just like ASP) include files by issuing an <!-- #include file="include.ezk" --> inside your EZK script. That way you can have common functions present in a separate script so you don't have to repeat functions and code in every EZK script you make.
There are many similarities with ASP scripting. EZK.OUTPUT function is exactly the same as RESPONSE.WRITE in ASP.
Creating standard XML scripts (for KML pages for example) is also quick. Just look at this example.
![]() Source code |
![]() Output of source code |
When using files, EZK will only allow opening files that are included in user defined sources. That means that you can't read files from WINDOWS directory or SYSTEM directory. Only user defined sources will be available for reading. Only one folder is available for writing - the temporary folder - by using the EZK.CreateTemporaryFile function.
All EZK functions and objects are accessed starting from the main EZK object.
For a list of EZK Functions and objects, please consult EZK Language from A to Z.