MongoDB PHP DriverMongoDB 的 PHP 驱动包
mongo-php-driver 是 MongoDB 御用的 PHP 驱动包。
示例代码:
<?php
// connect
$m = new Mongo();
// select a database
$db = $m->comedy;
// select a collection (analogous to a relational database's table)
$collection = $db->cartoons;
// add a record
$obj = array( "title" => "Calvin and Hobbes", "author" => "Bill Watterson" );
$collection->insert($obj);
// add another record, with a different "shape"
$obj = array( "title" => "XKCD", "online" => true );
$collection->insert($obj);
// find everything in the collection
$cursor = $collection->find();
// iterate through the results
foreach ($cursor as $obj) {
echo $obj["title"] . "\n";
}
?>
评论
mysqlndMySQL的PHP驱动
PHP最近发布了5.3版本,在该版本当中,提供了一个mysqlnd(MySQLNativeDriver)库,用来访问MySQL数据库,大大提升了PHP的数据库访问性能。我们知道,PHP访问MySQL数
mysqlndMySQL的PHP驱动
0
MongoDB Java DriverMongoDB 的 Java 驱动
MongoDBJavaDriver是MongoDB的Java客户端开发包,即Java使用MongoDB的驱动包。
MongoDB Java DriverMongoDB 的 Java 驱动
0
SendCloud PHP SDKSendCloud 的 PHP SDK 包
SendCloud PHP SDK,SendCloud 的 PHP SDK 包。使用方法获取用户信息
SendCloud PHP SDKSendCloud 的 PHP SDK 包
0
SendCloud PHP SDKSendCloud 的 PHP SDK 包
SendCloudPHPSDK,SendCloud的PHPSDK包。使用方法获取用户信息(在examples文件夹中)//自己的API_User和API_KEYdefine('API_USER','t
SendCloud PHP SDKSendCloud 的 PHP SDK 包
0
msphpsqlSQL Server PHP 驱动
msphpsql 是用于 Microsoft SQL Server 的 Microsoft PHP
msphpsqlSQL Server PHP 驱动
0
msphpsqlSQL Server PHP 驱动
msphpsql 是用于MicrosoftSQLServer的MicrosoftPHP驱动程序,它是PHP扩展,允许从PHP脚本中读取和写入SQLServer数据。 SQLSRV扩展提供了一个过程接口
msphpsqlSQL Server PHP 驱动
0