hey folks...
are there methods to CHMOD/CHGRP/CHOWN files in PHP?
I´m establishing the upload script for users at the moment, the files are stored in a .tmp-file while uploading and then are moved to the target folder, and to be on the safe side I want to change the permissions of these files to an absolute minimum until they are checked....could be done by hand of course, but would be much more comfy if it´s done automaticly when moving the file.
file manipulation in PHP?
Hello
Try This
an example
For CHMOD
http://ca.php.net/chmod
For CHGRP
http://www.phpdig.net/ref/rn22re293.html
for CHOWN
http://ca.php.net/chown
Cheers
an example
Code: Select all
chmod("/somedir/somefile", 644);
http://ca.php.net/chmod
For CHGRP
http://www.phpdig.net/ref/rn22re293.html
for CHOWN
http://ca.php.net/chown
Cheers
Don't Know
Hey Bad Brain one thing to note uploading via http in PHP as far as I can tell from my research is there is a limit to the file size that the server sets by default (anyone correct me if I am wrong) the default size is usually around 7 mb
Just thought I would mention that
Cheers Maboroshi
Just thought I would mention that
Cheers Maboroshi
Yes Indeed
Yes but that max_file_size has to be less then the value in these server variables
# ile_uploads
# upload_max_filesize
# max_input_time
# memory_limit
# max_execution_time
# post_max_size
So You will have to check Your PHP Configuration file B_B
Cheers Maboroshi
# ile_uploads
# upload_max_filesize
# max_input_time
# memory_limit
# max_execution_time
# post_max_size
So You will have to check Your PHP Configuration file B_B
Cheers Maboroshi