Knowledge Base

Browse our knowledge base articles to quickly solve your issue.

How Workbooks Runs Scripts

How Workbooks Runs Scripts

A Workbooks Script can be very flexible and hence for security reasons Scripts are run "at arms length" in a separate environment known as a "Jail" and they access the main Workbooks service just as any other Workbooks API program does.


Do not assume your Script will always run to completion.

In addition to enforcing basic security limitations, the Jail environment allows the Workbooks Script access to a reasonable amount of memory, and processor time. The Script is killed if it exceeds the runtime you request when creating the Process or it exceeds memory and processor usage limits.

PHP Libraries

Within the Jail the Script is interpreted as PHP code and has access to a number of useful PHP libraries. These include 

Web Services: xmlrpc curl

Email: imap


  • SQLite: sqlite sqlite3
  • Microsoft SQL: mssql
  • MySQL: mysql mysqli pdo_mysql
  • ODBC: odbc pdo_odbc pdo_mysql pdo_pgsql pdo_sqlite
  • PostgreSQL: pgsql pso_pgsql  

The current PHP version is 5.4; Workbooks will update this from time to time.

Related content

Useful information about Workbooks Scripts and the API can be found of the following links below:
Workbooks Scripts

Put common code in a single Script and Include it from others ...

Check the Script Library for new scripts as Workbooks publishes them.

The Script Library is an area where Workbooks publish useful Scripts and code snippets for customer use. In particula ...

Externally-Accessible Services

Do not tick the 'Allow Extenal Access' checkbox unless it is necessary for the Script.

The set of services permitted using 'External Access' are:
Web ...