I am trying to create a new set of dynamic pages that includes a certain numbered html file (issuex.htm), based on a parameter passed to the page.cgi template.
I have the code below in the template:
<%include $fileloc%>Which produces an error:
Error: Can't load included file '/home/user/public_html/newsletter/issue1.htm': Invalid characters in filename
The <%fileloc%> variable in the template dump looks fine to me...I can't work out why this won't work. If I manually put the path in the include line it works fine too. I have tried escaping various parts of the filename with no success either
.
I have the code below in the template:
Code:
<%set fileloc = "/home/user/public_html/newsletter/issue$issue.htm"%> <%include $fileloc%>
Error: Can't load included file '/home/user/public_html/newsletter/issue1.htm': Invalid characters in filename
The <%fileloc%> variable in the template dump looks fine to me...I can't work out why this won't work. If I manually put the path in the include line it works fine too. I have tried escaping various parts of the filename with no success either
