Article 546PY Who is www-data?

Who is www-data?

by
Pedroski
from LinuxQuestions.org on (#546PY)
I am trying out my new contact form, contact2.html on my localhost

I am the only user on this laptop.

The contact2.php writes to:

Quote:
$path = $_SERVER['DOCUMENT_ROOT'] . "/19BEhw/html/php/uploads/oral/";
echo 'path is ' . $path;
$time = microtime($get_as_float = false);
$newname = $studentnr . "_19BEsW16_" . $time;
$fp = fopen($path . $newname, 'w');
fwrite($fp, $body);
fclose($fp);
But the owner of the saved file is now www-data!

I am user: pedro

I can quickly use chown, but I'd rather the files were mine as they are written.

How can I achieve that??latest?d=yIl2AUoC8zA latest?i=5ydo9Djjp5Y:_reinoYeSw4:F7zBnMy latest?i=5ydo9Djjp5Y:_reinoYeSw4:V_sGLiP latest?d=qj6IDK7rITs latest?i=5ydo9Djjp5Y:_reinoYeSw4:gIN9vFw5ydo9Djjp5Y
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments