To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE Programming Environment documentationZPE & Web

A major part of ZPEs flexibility and YASS syntax is that it can be developed to do more than just what it was originally designed for. Part of this philosophy that it can do more was to develop a simple web server that can transform YASS into a server side language.

The YASS server side language is very similar to PHP and can be embedded in HTML. The following is a very quick example that will print the HTTP headers and then print the numbers from 0 to 50:

YASS
<!doctype html>
<html>
  <head>
    <title>Simple ZPE/YASS webpage</title>
  </head>
  <body>
    <p>Welcome to ZPE/YASS!</p>

    <?ywp
      print($_SERVER->headers)

      for($i = 0 to 500)
        print($i & "<br/>")
      end for

    ywp?>
  </body>
</html>

ZPE's web server is a work in progress, and although it is fully working as of version 1.7.8, extra work is needed to make it both faster and to give it more power such as posting of forms.

Comments

There are no comments on this page.

New comment
Reply
Provide feedback on this page
Comments are sent via email to me.