I Have No Idea What To Do

Hello,

Here’s the idea—

I want a snippet of code to capture a piece of the URL and use that information to load items in the page.

For example—

In the source of http://www.example.com/XYZ.php (XYZ.html, XYZ.asp, etc.), there would be a piece of code that recognized the ‘XYZ’ part of the URL and loaded a list of the files found in the folder http://www.example.com/files/ABC/

Any recommendations?

Thank you.