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
What is the use of $_server["php_self"] variable?
What is mysqli_fetch_array?
How to break a file path name into parts?
What is $_ request?
How to create connection in php?
What is the default time of cookie in php?
What is the best php framework 2018?
Explain include(), include_once, require() and require_once?
What does $_env means?
How to create a text file in PHP?
What does mvc stand for and what does each component do?
What are variables in research examples?
What is if isset ($_ post submit )) in php?
Why session timeout is important?
Is java is better than php?