Update a gallery webpage via Dropbox?
If you can install the DropBox client on the webserver then it would be simple to let it sync your folder and then iterate over the contents of the folder with a programming language (PHP, Python, .NET etc) and produce the gallery page.  This could be done every time the page is requested or as a scheduled job which recreayes a static page.  This is all dependent on you having access to install the client on your server.
I'd like to know if the following situation and scripts are at all possible: 
I'm looking to have a photo-gallery (Javascript) webpage that will display in order of the latest added to the Dropbox folder (PHP or Python?). 
That is, when someone adds a picture to the Dropbox folder, there is a script on the webpage that will check the Dropbox folder and then embed those images onto the webpage via the newest added and the webpage will automatically be updated. 
Is it at all possible to link to a Dropbox folder via a webpage? If so, how would I best go about using scripts to automate the process of updating the webpage with new content? 
Any and all help is very appreciated, thanks!