If I was going to add in some php somewhere to pull the file from the directory outside of the webroot, let's say, where would I go about putting that in?
My setup could be described as similar to:
The item in the gallery appears to have http://domain.com/zenphoto/albums/videos/video1.mp4 but the videos/ is really a symlink to http://domain.com/videos/ which is not accessible by weblink (.htaccess restricted).
I can write a small php script using readfile which will return the file with correct headers to the player plugin (flowplayer or jplayer).
Where would I put the code that tells zenphoto that for something located at http://domain.com/zenphoto/albums/videos/video1.mp4 it should pass along the url of http://domain.com/videograb.php?file=video1.mp4 or something similar? Or is there no real good place for this to go?