Synergize Server Control Functions

Synergize_StartListening( { portNumber ; privateKeyFile ; certificateFile } )

portNumber number Specify a port for Synergize to listen for requests. If omitted, a random port will be selected
privateKeyFile text Location of the private key file to start in HTTPS mode
certificateFile text Location of the certificate file to start in HTTPS mode

Starts Synergize’s built in web server, and begins listening on the provided (or random) port. If a valid private key and certificate file are provided, Synergize will listen for requests in HTTPS mode only. This function can be called multiple times to listen on multiple ports.

Synergize_StopListening

Stops Synergize’s built in web server, and it will stop responding to requests on all ports.

Synergize_AllowExternalRequests( allowExternal {; username ; password } )

allowExternal boolean True if requests should be allowed, False if they should be denied
username text Only accept requests where the username matches
password text Only accept requests where the password matches

By default, Synergize will only respond to requests coming from the local machine (127.0.0.1 or localhost). This function allows external IP addresses to access content and apps, and can optionally require a username and password.

Synergize_EnableGZIP( enable )

enable boolean True to enable, False to disable

Some systems do not support GZIP, and will cause web requests to fail if it is enabled. This is enabled by default, as it can drastically improve performance. Disable this if you notice problems.

Synergize_SetPHPDirectory( path )

path text Directory in which PHP is installed

If you would rather use a local installation of PHP, instead of the version bundled with Synergize, you can use this function to tell Synergize where your local version can be found.

Synergize_SetPHPIniDirective( name ; value )

name text Configuration directive to set
value text Value to assign

Allows control over specific PHP configuration within FileMaker, without having to manage php.ini files

Synergize_SetPHPIniFile( path )

path text Location of the configuration file to be loaded

If you would rather use a specific php.ini file, this function can be used to tell Synergize where it can be found.