Home » Questions » Computers [ Ask a new question ]

html to dynamicly list files in a directory

html to dynamicly list files in a directory

I am in the process of redoing some of our company website. We do a lot of recruiting and so we change job descriptions on our job offering page quiet often.

Asked by: Guest | Views: 176
Total answers/comments: 1
Guest [Entry]

"Use a scripting language like PHP to read the files in the directory. Personally I would do something like this:

Create a PDF file for each job description (i.e. design-manager.pdf , financial-manager.pdf)
Use PHP to loop through the directory, and add the file name to an array
Manipulate the array to output the HTML (remove the dash using str_replace and capitalize the job title using ucwords)."