保存时创建额外文件是错误的
StackOverflow 的朋友们大家好。
运行 Drupal 6.22 php 5.3
我已经四处寻找了一段时间,但还没有找到解决我的问题的方法。
我希望有人能够帮助我解决这个问题。
我需要从数组中保存的数据编写一个 xml 文件。 我已经编写了这段代码,它运行良好,没有问题。
我已调用它在每次 cron 运行时运行,以确保我的数据是最新的, 但是我没有得到第二个文件夹 my_file.xml.imported,这给我带来了问题。
我正在使用 xml2node 和 hotfolders 将此数据导入到我指定的内容类型中。
最让我困扰的是我上周完成了这项工作,此后我所做的就是在写入 xml 文件的数据上添加一个额外的“过滤器”。
有谁知道这个 .imported 文件类型是什么以及如何阻止它发生?
Hi StackOverflow friends.
Running Drupal 6.22 php 5.3
I have been looking around now for a while, but haven't managd to find a solution to my problem.
I am hoping someone may be able to help me out with this.
I need to write an xml file from my data held in an array.
I have written this code and it works fine without problems.
I have invoked this to run on every cron run to ensure my data is upto date,
however I am no getting a second folder my_file.xml.imported and this is causing me problems.
I am using xml2node and hotfolders to import this data into my specified content type.
What bothers me most is that I had this working last week, all I have done since is put an extra "filter" on my data being written to the xml file.
Does anyone know what this .imported file type is and how I can stop it from happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以我终于弄清楚了这一点,希望如果其他人遇到这个问题,这可能会对他们有所帮助。
.imported 文件是在 xml 文件被处理并放入 drupal 队列后由 xml2node 模块创建的。
当 xml2node 再次搜索 xml 文件时,它会删除所有 .imported 文件,这样您的服务器就不会因无用的一次性文件而过载。
So I finally figured this out, hopefully if someone else comes across this problem, this may help them.
The .imported file is created by the xml2node module after the xml file has been processed and put into the drupal queue.
When xml2node then searches again for xml files, it deletes all the .imported files so that your server does not get overloaded with useless once off files.