Now one of my clients wants fancy password protection for some pages which he needs to update regularly. I want to control the passwords/access using sessions in A4D, but I still want him to be able to FTP the updates. So, I was hoping I'd be able to include a remote URL in an A4D page, in the form:
<% include("http://www.com") %>
However, I assume this is not possible.
I could redirect to the remote page after checking the password, but this would alert the user to the page's URL and allow him to circumvent the password control next time.
So, can some kind soul please suggest a better strategy?
David,
When you say include a remote URL I assume you mean the content of the page at the URL?
I never used it, but WebSTAR 4.5 had a plug-in that would allow you to include pages from another site into your site. See http://www.webstar.com/products/webstar/docs/ws4manual.58.html. I don't know if this functionality is in W*V. Webinclude was a separate plugin in 4.5. and I don't see it in V.
<%
if (ok to upload the update)
write ("[[webinclude]]$remote_included_page[[/webinclude]] `tag syntax was made up by me for this example. real syntax probably varies.
else
'do something else
end if
%>
Another (admittedly ugly) solution might be to have a4d call some ITK or 4DIC 4d code that would get the HTML for the page you want to include write the result to a file and have a4d include it.
-- Brad
