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
Applications written to provide a GUI shell for Unix and Linux are called
Is php the same as html?
What are the differences between php constants and variables?
How to access standard error stream in PHP?
What is cookie?
How to access a global variable inside a function?
Tell me what does pear stands for?
Tell me how can you pass a variable by reference?
What is difference between required and include in php?
What is the content of /etc directory?
Why triggers are used in mysql?
Which is correct about mysqli and pdo?
How can you upload a file using php?
Explain difference between urlencode and urldecode?
Tell me what is the difference between the functions strstr() and stristr()?