That error code is a generic error due to some missing permission or access. We recommend you to try the included example (please note we use '\\' and '\\\\' to set the path of the folders):
and the most simple sample available for PHP COM on:
using PHP CLI mode to find where the error comes from. And then run it using a web browser.
Also please check this information about solving that generic error: