I'm using the FileMaker PHP API to perform a FileMaker script, i.e. like this:
$scriptObject = $fm->newPerformScriptCommand($layoutName, $scriptName, $scriptParam);
// Execute the script
$scriptResult = $scriptObject->execute();
The FileMaker script uses the result of the Get ( DocumentsPath ) function to determine a location on the server, however I've just noticed this script is returning an empty result for the Get ( DocumentsPath ) function.
I've tested a few other Get functions which are returning a result, including Get ( TemporaryPath ) and Get ( AccountName ) however Get ( DocumentsPath ) is not returning a result.
At this stage I'm not sure if this is expected behaviour or not? I noticed in the FileMaker Pro 13 help that this function is not supported under FileMaker WebDirect, but it makes no mention of Custom Web Publishing clients.
It may be same as WEBD, since php client has also temporary session on server. There is no meaning of using DocumentsPath instead of TemporaryPath, the contents should be deleted after session is closed.
I hasn't tested but if you want to use server's document folder, try perform script on server.