PHP: get_current_user() vs. exec('whoami')
Short version of the question: What's the difference between get_current_user(); and exec('whoami'); ? Long version of the question: I'm on a XAMPP Localhost on a Mac. I'm using Apache, building a PHP based website in a folder (let's call it folderxyz ) within the htdocs folder (var/www in some flavors of Linux+Apache). I was playing around with a database connection, testing out PDO::ERRMODE_EXCEPTION described here: Link And I got this error: file_put_contents( PDOErrors.txt ): failed to open stream: Permission denied... So I did some sleuthing around and it seems that to fix this I need to