在 PHP 中查看 Python 的搁置对象

发布于 2024-09-02 05:09:33 字数 349 浏览 1 评论 0原文

我正在使用 Python 进行索引,利用 shelve 功能,我想知道它是否可以用 PHP 打开和读取文件。

我检查了 PHP Shelve 选项,它似乎不适用于 PHP 5.X 我得到(运行他们给我的示例时)

PHP Fatal error: Cannot pass parameter 2 by reference in test.php on line 205

Even尽管如此,我认为在 PHP 中写入搁置不会获得与在 Python 中相同的性能。

I am using Python for indexing utilizing the shelve functionality and I was wondering whether it was possible to open and read the files in PHP.

I checked out the PHP Shelve option and it doesn't seem to be working on PHP 5.X I am getting (when running the example they gave me)

PHP Fatal error: Cannot pass parameter 2 by reference in test.php on line 205

Even still, I don't think I'd get the same performance writing to the shelve in PHP as I would in Python.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

看透却不说透 2024-09-09 05:09:33

我不确定该项目有多成熟或开发得有多好,但是,如果我有这种需要,我会尝试 Python 在 PHP 项目中。

I'm not sure how mature or well developed that project is, but, if I had that need, I would try the Python In PHP project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文