Ok, here's the long of it:
I am running asterisk (PBX Software) and it has a voicemail directory, let's say it's located at /etc/voicemail/
And then it has a bunch of different subdirectories.
I then have a web page, let's say, http://localhost/voicemail.php
The user uses voicemail.php to login, I verify that they exist, and then I need to show them their voicemail.
Problem:
/etc/voicemail/ cannot be accessed by web page. Give the error: Warning: opendir(/etc/voicemail/): failed to open dir: Permission denied in /var/www/voicemail.php on line 45
I do not want to change permission on the voicemail directory because people would like to know that their voicemail is confidential.
There is a perl script for this, but we are trying to migrate everything over to PHP (as much as possible).
So I need a way to list the voicemail.wav files inside of /etc/voicemail/ without comprimising security (or at least I would like to think I'm not).
Can I do this with cURL or something.
If you still dont' understand, let me know. I'll be more than happy to give any more missing puzzle pieces.
You keep saying that it is a security issue. Perhaps you can tell me how to do it and let the senior programmer decide whether he wants to do it or not.