php - 如何从 Flash 电影 (.swf) 中读取文本

标签 php flash

今天我意识到 Google 正在为 Flash 电影中的文本编制索引,我很感兴趣如何使用任何服务器端语言 (PHP) 来实现这一点?由于它是一个编译文件,我唯一可能的方法是通过光学字符识别。

编辑: This is an example包含已为保加利亚 Flash 网站编入索引的所有 Flash 电影。

最佳答案

这是您可能想要阅读的内容:SWF Searchability .

特别是,有一段话可能是您所问问题的关键:

Adobe has provided Flash Player technology to Google and Yahoo! that allows their search spiders to navigate through a live SWF application as if they were virtual users. The Flash Player technology, optimized for search spiders, runs a SWF file similarly to how the file would run in Adobe Flash Player in the browser, yet it returns all of the text and links that occur at any state of the application back to the search spider, which then appears in search results to the end user.

因此,他们似乎为这两个搜索引擎提供了特定的 Flash 播放器,以使其内容可抓取,这就是为什么您可以按电影中出现的文本进行搜索的原因。但是,我不太确定您将如何使用任何服务器端语言执行此操作。

关于php - 如何从 Flash 电影 (.swf) 中读取文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10258645/

相关文章:

javascript - 将 HTML5 地理位置纬度和经度值插入数据库

PHP/C++ : Inject values into EXE file

apache-flex - 使用多个模块时优化 Flex

windows - 将 Numpad 与修改键一起使用会表现出奇怪的行为

php - 如何在 php 中为每个循环调用多个表

php - 使用 php 格式化 MySQL/服务器时间戳?

php - Laravel 数组验证数组中的唯一属性,但不需要在表中唯一

闪存错误 5001 : name of package does not reflect location?

java - 如何从 Java 调用 Flex/Flash/Actionscript 方法?

flash - 多个 RTMP-Stream 的实时转码