Ok try this;
main.php => filename
PHP Code:
dirname="page/" 'change as needed
mypath = "page/" 'change as needed
Set fso = CreateObject("Scripting.FileSystemObject")
Set folder = fso.GetFolder(server.mappath(dirname))
Set filez = folder.Files
FileCount = folder.Files.Count
response.write "<p>There are <b>" & FileCount & "</b>" & " files</p>" 'change as needed
For Each listing in filez
TotalChars = len(listing.name)
Title = left(listing.name,TotalChars - 4)
Title = replace(Title,"_"," ")
response.write "<a href='framed-page.asp?path=" & mypath 'change framed-page.asp?path as needed
response.write listing.name
response.write "' class=""menu"" target=""_new"">" 'change as needed
response.write Title
response.write "</a><br>"
Next
framed-page.asp => filename
PHP Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Framer</title>
</head>
<body>
<% iframeSource = request.querystring("path") %>
<iframe src="<%= iframeSource %>" border=3 frameborder=0 marginheight=0 marginwidth=0 width="100%" height="100%" name="iframeElement" id="iframeElement" scrolling=none></iframe>
</body>
</html>
Make a folder called page 'change as needed in main.asp then add some files, HTML if possible or whatever you want - ASP|PHP|Blah, Blah
passme.asp => filename
PHP Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pass me</title>
</head>
<body>
<h1>Passed page</h1>
<p>Hello I my path is ...</p>
</body>
</html>
What you want to do seems sneaky.
This code in NO way supports your plans for whatever you want to do with it.
Edit: If it's sneaky!
Cheers
Bookmarks