Forum Moderators: coopster
I have a location that is like this:
c:\Inetpub\wwwroot\website\exampledirectory\
Localhost is at: c:\Inetpub\wwwroot\
At the exampledirectory location I would like to create directories and upload files. I think I have the correct permissions, but I can't seem to get it to work. So I'm thinking maybe my paths are wrong. Could someone please tell me how I could use for example mkdir(string pathname) to get this to work.
Thanks.
On Windows, both slash (/) and backslash (\) are used as path separator character. In other environments, it is the forward slash (/).
What is the permissions on the directory you are trying to upload to? Use the umask function [php.net] to determine this:
<?php
echo umask();
?>
Place this script in the directory you mentioned:
c:\Inetpub\wwwroot\website\exampledirectory\
So I have made it work.
Thanks for your tip. It was put me in the road to salvation :)