通过Dropbox更新画廊网页? [英] Update a gallery webpage via Dropbox?

查看:53
本文介绍了通过Dropbox更新画廊网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道以下情况和脚本是否完全可能:

I'd like to know if the following situation and scripts are at all possible:

我希望拥有一个照相馆(Javascript)网页,将按照最新添加到Dropbox文件夹中的顺序显示(PHP或Python?)。

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?).

也就是说,当有人将图片添加到Dropbox文件夹时,网页上会有一个脚本,该脚本将检查Dropbox文件夹,然后通过以下方式将这些图像嵌入到网页中最新添加的网页将自动更新。

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.

是否可以通过网页链接到Dropbox文件夹?如果是这样,我将如何最好地使用脚本来自动化用新内容更新网页的过程?

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!

推荐答案

如果您可以在网络服务器上安装DropBox客户端,那么让它同步您的文件夹,然后使用编程语言(PHP,Python,.NET等)遍历文件夹的内容并生成图库页面将非常简单。可以在每次请求页面时执行此操作,也可以作为增加静态页面的计划作业来完成。这完全取决于您是否有权在服务器上安装客户端。

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.

这篇关于通过Dropbox更新画廊网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆