Allow PHP script in protected directory
-
12-11-2019 - |
题
I've got a folder named 'templates' which is CHMOD 777 and protected by a htpasswd. This means I can still use my PHP upload script to upload files into that folder and people from outside cannot access these files.
I also got a script which uses the phpmailer class. This script sends e-mails and attaches a file which is located in that protected folder.
My problem is that now that I got this protection enabled, I do receive the email but without attachment. I only receive the attachment once there is no htpasswd protection.
Any idea's what I could do?
没有正确的解决方案
不隶属于 StackOverflow