سؤال

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?

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top