Web 任务所需的语言
我有一个关于完成一些特定任务所需的 Web 编码语言类型的问题:
- 脚本需要能够从具有数百个条目的文本或 MySQL 数据库导入(称为 database.txt)
- 它需要能够以某种方式获取database.txt的每一行并将其作为字符串存储到变量中,然后可由脚本使用
- 它应该能够返回一些文本(不返回给用户,只返回给脚本)以您在以下 URL 中看到的内容的形式:http://search.twitter.com/search.atom?q=stackoverflow&:)&since:2011-05-11&rpp=100&page=15
- 它需要有某种方法可以搜索特定字符串返回的文本(在上面的 URL 中,例如
),以便统计文档包含的条目 - 数量需要能够将其积累的信息导出到数据库,以便能够通过 PHP 显示给最终用户
- 最好它应该能够在后台运行,而查看结果的人不必查看或等待任何处理,可能每天运行一次
我的问题本质上是,我需要使用什么语言来完成上述所有任务并使它们自动化?
I have a question about the type of web coding language I would need to complete a few specific tasks:
- The script needs to be able to import from a text or MySQL database which has hundreds of entries (call this database.txt)
- It needs to be able to have some way of taking each line of database.txt and storing it as a string to a variable, which then can be used by the script
- It should be able to return some text(not to the user, only to the script) in the form of something you'd see at this URL: http://search.twitter.com/search.atom?q=stackoverflow&:)&since:2011-05-11&rpp=100&page=15
- It needs to have some way of searching the text returned for a certain string (in the above URL, say
<published>
) in order to tally the amount of entries that the document contains - It also needs to be able to export the information it accumulates to a database so it's able to be shown to the end-user by PHP
- Preferably it should be able to run in the background without the person viewing the results having to see or wait for any of the processing, maybe running once a day
My question essentially is, what language would I need to use to accomplish all of the above tasks and making them automated?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
任何编程语言。如果您需要快速完成这项工作,请使用您最了解的人。如果学习一门新语言比尽快完成这件事更重要,请使用您接下来要学习的语言。
Any programming language. Use the one you know best if you need to get this done quickly. Use the one you want to learn next if learning a new language is more important then getting this done soon.