This is regarding file uploading.
1. Who will be the owner of the uploaded file ?
2. What permission you will give for an uploaded file ?
3. What is mean by user, group and others and what kind of
permission you will give for each user and explain the
reason?
Answer Posted / amitverma
1. Apache will be the owner of the uploaded file.
2. It depends upon the scenario on which we're going to use
the uploaded file(s), by default it's 660 file permission.
3. Basically a file in linux has permissions related to the
user (owner), group (owner group) and others (rest of the
users/groups). So accordingly we provide the permissions to
a file(s). Also, permission are basically related to READ,
WRITE and EXECUTE operations.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How to get the value of current session id?
Tell me is it possible to remove the html tags from data?
How do I stop php artisan serve in windows?
What is singleton class in php?
What is rest api in php?
Explain php split() function.
How to get the directory name out of a file path name?
Does PHP 5 support exceptions? State Whether True or False?
What is htaccess? Why do we use this and where?
How to return ascii value of character in php?
What is the $_ server php_self variable?
How to remove white spaces from the beginning and/or the end of a string in php?
Explain the types of functions for Splitting String?
which will print out the php call stack?
Tell me how can we automatically escape incoming data?