PEAR扩展 [英] PEAR extensions

查看:84
本文介绍了PEAR扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我刚刚开始进入并学习PEAR,但有一件事我还没有开始使用PEAR将数据插入数据库......它可以用于此吗?还有你对它的缓存功能的看法是什么?

Hi,

I''ve just recently starting getting into and learning PEAR, but one thing I haven''t come accross yet is using PEAR to insert data into a DB... can it be used for this? and also what are your views on it''s cache function?

推荐答案

PEAR本身并没有帮助你编程,它是一个为你提供额外功能的工具PHP软件(函数,类等)。


虽然有PEAR模块,可以进行数据库处理(MDB2 *),PHP本身也有强大的DB处理程序( PDO 和(尤其是MySQL) MySQLi


* - 上次我尝试使用MDB2时,它是为PHP 4(兼容)编写的,它经常抛出E_STRICTs
PEAR itself does not help you in programming, it''s a tool to provide you with additional PHP software (functions, classes, etc.).

although there are PEAR modules, that can do DB handling (MDB2*), PHP has powerful DB handlers itself (PDO and (esp. for MySQL) MySQLi)

* - last time I was trying MDB2, it was written for PHP 4 (compatible), which constantly threw E_STRICTs


我可以整合PDO& PEAR缓存...我的目标是尽可能快地从数据库中抽取数据,但是缓存某些sql查询,以便更快地获取数据并在数据库服务器中使用更少的内存
can i intergrate PDO & PEAR cache... my aim is to abstract data from a db as fast and as clean as possible but cache certain sql queries so getting the data is faster and uses less memory in the db server



...缓存某些sql查询...
… cache certain sql queries …



这就是预备语句的作用。


PDO-Guy

that’s what Prepared Statements do.

the PDO-Guy


这篇关于PEAR扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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