我有一个基于Web的应用程序,该服务器的内容通过与soap服务器交互来验证用户身份。肥皂服务器具有用户需要能够下载的文件。php apache和临时文件
向用户提供这些文件的最佳方式是什么?当用户请求一个文件时,我的服务器会对肥皂服务器进行soap调用来提取文件,然后通过引用链接将其提供给用户。
问题是这些临时文件需要在某些时候清理干净,我首先想到的是这是一个基于Linux的系统,将它们存储在/ tmp /并让系统负责清理。
Is it possible to store these files in /tmp and have apache serve them
to the user?
如果Apache无法访问/ tmp目录,因为它是Web根目录之外,可能我可以创建网站根目录下的符号链接到/ tmp /文件名? (这需要清除符号链接,但在某些时候。)
建议/意见赞赏最佳方式来管理这些临时文件?
I am aware that I could write a script and have it executed as a cron job on
regular intervals but was wondering if there was a way similar to presented
above to do this and not have to handle deleting the files?
是你的第一个几句话正是我过得怎么样,但这个并没有解决如何“清理”这些文件,因为我们不希望填补服务器与我们可以通过肥皂检索附件。 – Chris 2010-08-25 16:28:11
感谢您的链接,但很好的信息。 – Chris 2010-08-25 16:30:29