使用 PHP 从同步到 MySQL 的 main.db 获取 Skype 聊天记录 [英] Get Skype chat history from main.db synced to MySQL with PHP

查看:54
本文介绍了使用 PHP 从同步到 MySQL 的 main.db 获取 Skype 聊天记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法用 PHP 获取每 X 分钟复制到 MySQL 的 Skype main.db 数据?

Is there a way to get with PHP maybe from Skype main.db data copied to MySQL in every X minutes?

我运行的是 Windows 10 和 WAMP 服务器.

I have Windows 10 and WAMP server running.

推荐答案

如果您正在运行 WAMPP,那么只需创建一个 BAT 文件:

If you have WAMPP running then just create a BAT file:

copy /b/v/y C:\Users\YOURNAME\AppData\Local\Packages\Microsoft.SkypeApp_kzf8qxf38zg5c\LocalState\s4l-YOUR_SKYPE_NAME.db C:\wamp64\www\skype.db

然后您就可以使用 PHP 访问 DB 文件

Then you have the DB file accessible with PHP

$db = new SQLite3('skype.db');
$results = $db->query('SELECT nsp_data FROM messagesv12');
while ($row = $results->fetchArray()) {
// And here's the data:
// $messages['cuid']
// $messages['conversationId']
// $messages['creator']
// $messages['createdTime']
// $messages['content']
}

对数据做任何你想做的事情.添加到 MySQL 或任何你想要的.

Just do whatever you want with the data. Add to MySQL or whatever you wish.

这篇关于使用 PHP 从同步到 MySQL 的 main.db 获取 Skype 聊天记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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