I need some help with some advanced file include code.. I googled around, but I'm not sure how to describe it in a short way for searching.
Basically here is the file structure:
/public_html/include_handle.php
/protected_site/index.html
/images/image.jpg
If I include index.html using a regular include statement, image.jpg obviously won't show in the browser because it's not in a public/relative directory. Short of some heavy preg_match/replace parsing, how can I get the image to show on the include_handle.php page when including index.html? I would also like to be able to follow links to other pages from the index.html page. I know I can use iframes and put the static pages in a public directory, but I don't want that for various reasons. Any help would be greatly appreciated, Thanks!
readfile()