no the .php file doesn't know that it's in a password protected folder, it doesn't know anything about the .htaccess file.
How should I modify the .php file, to make saving work in a password protected folder? It's hosted on Linux, I password protected the folder with CPanel.