Here's a problem I'm trying to solve:
In the configuration page of our CMS there is place where the administrator
would specify the directory where uploaded audio files will be stored. The
page currently does not work as fully as I would like. After a change the
audio files are not web-accessible until httpd.conf is updated to map URLs
to the new folder (and an Apache restart).
In my httpd.conf there's a line that looks like the following:
RewriteRule ^/audio/(.*) C:/Audio/$1
So it seems if I can somehow make the "C:/Audio" part a variable that can be
modified by PHP, my problem would be solved.
Any idea?
P.S. Don't suggest using readfile(), fpassthru(), etc.
In the configuration page of our CMS there is place where the administrator
would specify the directory where uploaded audio files will be stored. The
page currently does not work as fully as I would like. After a change the
audio files are not web-accessible until httpd.conf is updated to map URLs
to the new folder (and an Apache restart).
In my httpd.conf there's a line that looks like the following:
RewriteRule ^/audio/(.*) C:/Audio/$1
So it seems if I can somehow make the "C:/Audio" part a variable that can be
modified by PHP, my problem would be solved.
Any idea?
P.S. Don't suggest using readfile(), fpassthru(), etc.
Comment