I am working on an intranet application that uses PHP and jQuery. When a user submits a form, the form is passed to another script via AJAX.
On one such form the user supplies a Windows UNC path to a server on the network. The handler script needs to create the directory the user specifies so that files can be moved via another process.
If I run a script from the web server using mkdir('\server\path1\newpath') it works just fine. So I know the web server user has correct access rights.
But when I use the exact same command to the same network server in a script called via AJAX it fails with "No such file or directory".
Does the application lose its identity in an ajax call? Any ideas?
Thanks.