Web page programmers help

AMCRambler

Diamond Member
Jan 23, 2001
7,714
31
91
This might be possible or it might not. Hoping somebody can point me in the right direction.
Here's what I'm looking to do. I have an web page with a listing of links to a whole bunch of pdf files. What I'd like to do is have this list update whenever I drop a new pdf into the folder on the server where the pdf's are kept. Basically directory listing displaying all the files in the folder and the link to each. The link can be the filename as the files are descriptively named.
I would just turn directory listing on, but directory listing is required to be off due to server security policies. Also, the formatting for directory browsing does not come out very clean as you get all the information for the file size, modified date, file permissions, etc. Is there anyway to do this with straight html or maybe with a snippet of vbscript or java? I've been searching the web but I haven't found a simple implementation of this yet that doesn't require plugin extensions being installed on the web server. Does anyone know a way of doing this?
 

snapper316

Member
Feb 16, 2006
58
0
0
i know how to do it in coldfusion does your web server support that?

what languages can you support? php/cf/asp etc....
 

AMCRambler

Diamond Member
Jan 23, 2001
7,714
31
91
The web server is just stock IIS 5.0 with Windows 2000. It doesn't help that I'm an amateur when it comes to web programming. I've taken a few basic courses in java and html, but it's been awhile since I've put it to use. I believe we are running asp pages on the server for our intranet site. So the possibility is there for that. Not sure about php or cf though.
 

troytime

Golden Member
Jan 3, 2006
1,996
1
0
i have the code you need in php, but i'm not sure if its installed on your server.

find out and post back, i'd be more than happy to share
 

clamum

Lifer
Feb 13, 2003
26,252
403
126
Here's some VBScript to get ya started. Put this code into a file in the directory where you're storing your PDF files and browse to the page. It should list the files in that directory. If the web page file and PDF files are in separate directories, you'll have to modify the path. I can help ya later after I get back from lunch if you want.
 

AMCRambler

Diamond Member
Jan 23, 2001
7,714
31
91
Alright I've got the code in a vbs file in the folder with the pdf files. The html file is in a different folder than the pdf's. Will I need to put a line of code in the html to call the vb script file? Right now if I just browse directly to the vbs file it doesn't look like it does anything. The vbs file just loads up a blank page.

EDIT: Thanks for the help by the way. If I can get this to work it will make my life a lot easier. These pdf's get updated on a regular basis and the file names change. As a result every time one gets updated I'm forced to go and change the link in the html. If the page would dynamically list the file links then I can just have the person doing the updating copy the files over and not have to worry about changing any code.
 

clamum

Lifer
Feb 13, 2003
26,252
403
126
Originally posted by: AMCRambler
Alright I've got the code in a vbs file in the folder with the pdf files. The html file is in a different folder than the pdf's. Will I need to put a line of code in the html to call the vb script file? Right now if I just browse directly to the vbs file it doesn't look like it does anything. The vbs file just loads up a blank page.

EDIT: Thanks for the help by the way. If I can get this to work it will make my life a lot easier. These pdf's get updated on a regular basis and the file names change. As a result every time one gets updated I'm forced to go and change the link in the html. If the page would dynamically list the file links then I can just have the person doing the updating copy the files over and not have to worry about changing any code.
You'll need to create an ASP page (.asp extension) and paste that VBScript in there. Then it should work.

I'm guessing you'll want that ASP page in the same directory you have your HTML file now. In order for the script to list the files in your PDF directory, you'll need to plug the path to the PDF directory in. You can either specify a physical path or a virtual one and then use MapPath. See the attached code.
 

AMCRambler

Diamond Member
Jan 23, 2001
7,714
31
91
Originally posted by: clamum
Originally posted by: AMCRambler
Alright I've got the code in a vbs file in the folder with the pdf files. The html file is in a different folder than the pdf's. Will I need to put a line of code in the html to call the vb script file? Right now if I just browse directly to the vbs file it doesn't look like it does anything. The vbs file just loads up a blank page.

EDIT: Thanks for the help by the way. If I can get this to work it will make my life a lot easier. These pdf's get updated on a regular basis and the file names change. As a result every time one gets updated I'm forced to go and change the link in the html. If the page would dynamically list the file links then I can just have the person doing the updating copy the files over and not have to worry about changing any code.
You'll need to create an ASP page (.asp extension) and paste that VBScript in there. Then it should work.

I'm guessing you'll want that ASP page in the same directory you have your HTML file now. In order for the script to list the files in your PDF directory, you'll need to plug the path to the PDF directory in. You can either specify a physical path or a virtual one and then use MapPath. See the attached code.

Thanks dude. I'll give it a shot and see what I get. I may not get back to you before next week though. I'm heading to some AutoCAD training Wednesday, Thursday and Friday. I'll shoot you a pm if I get stuck so you don't have to keep checking this thread. I really appreciate the help. Thanks again.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |