简体   繁体   English

在PHP中查看Python的货架对象

[英]Viewing Python's shelve objects in PHP

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. 我正在使用Python来利用货架功能建立索引,并且想知道是否可以在PHP中打开和读取文件。

I checked out the PHP Shelve option and it doesn't seem to be working on PHP 5.XI am getting (when running the example they gave me) 我签出了PHP Shelve选项,它似乎在PHP 5.XI上不起作用(正在运行他们给我的示例时)

PHP Fatal error: Cannot pass parameter 2 by reference in test.php on line 205 PHP致命错误:无法通过第205行的test.php中的引用传递参数2

Even still, I don't think I'd get the same performance writing to the shelve in PHP as I would in Python. 即便如此,我仍认为在书架上写的性能不如在Python上写的性能高。

我不确定该项目的成熟程度或开发程度,但是,如果我有此需求,可以尝试使用Python In PHP项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM