Well, at least the PHP-Script which you are directly calling has to be in the htdocs directory. If your web server is set up in a fashion that allows including files which are unreachable via HTTP requests, then it would be advisable to put the API into a directory which is not below htdocs, but in that case you would have to adapt the includes in the example scripts.
regards,
Heiko Weber
#webMethods#API-Management#webMethods-Tamino-XML-Server-APIs