Page 1 of 1
Set File Permissions
Posted: Sun Sep 12, 2004 9:24 pm
by AliasBDI
I created a form that uploads files from one domain to another. But my problem is that the file which is uploaded has the permission of the first domain. So people surfing the uploaded file on its domain cannot view it (the permissions are set for the first domain with the form). So I figured that after uploading the file, php would set the permissions of that file for that specific domain that it exists on.
Can PHP set permissions to files?
Posted: Sun Sep 12, 2004 9:29 pm
by AliasBDI
To clear it up... I need to set the NTFS permissions. Is that possible?
Posted: Sun Sep 12, 2004 9:52 pm
by feyd
[php_man]chmod[/php_man] may set NTFS perms, but not sure..
Posted: Sun Sep 12, 2004 9:54 pm
by Weirdan
AliasBDI wrote:Is that possible?
AFAIK php does not know anything about ntfs permissions but, fortunately, it can run external programs. So you can run some command line utility similar to
chmod on Unices... as well as .wsf file

Here is what quick google search revealed:
http://66.102.9.104/search?q=cache:VI81 ... sion&hl=en
Seems it fits for your task
