Frage

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?

Keine korrekte Lösung

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top