I find the function "GetWebPath" may be wrong, it can't parse the correct path for your application.
for example,
the correct path must be "/phpfileuploader/phpuploader",
but it parse result is "/phpfileuploader/formolume2/web/phpfileuploader/phpuploader"
my server document-root is "/var/services/web",
so it make the program not work fine.
May be you can resolve it.