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:
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??


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); |
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??