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


Please Help Members By Posting Answers For Below Questions

How to randomly retrieve a value from an array?

546


What is the special meaning of __sleep and __wakeup?

568


What is the use of isset() in php?

526


Tell me what is the use of explode() function?

541


Are objects passed by value or by reference?

543






What is Apache's configuration file typically called?

552


How can we get ip address of a client in php?

535


Write a program using while loop?

550


What type of errors can be occurred in php?

552


Write a program to display a table of any given number?

485


What are the different tables(engine) present in mysql, which one is default?

504


Why do we need session?

528


What are properties in php?

509


What are the methods of array in java?

485


How to access a specific character in a string using php?

509