What is the best way to include a file whose folder and file name are obtained from the query string?
In myServer.com/data there are hundreds of folders with several files in each. These are plain html files.
In myServer.com/code is a php targetPage.php
I can build an URL like this:
http://www.myServer.com/code/targetPage.php?folder=folder132&name=file23
What is the php to read the source file within the source folder and include the content of a source "div" as innerHTML of the "targetDiv" in the target page?
<body><div id="targetDiv">This is the place holde div</div>
I'm rather new to php, hence the question.