易截截图软件、单文件、免安装、纯绿色、仅160KB

php 连接access的代码

<?php
$connstr="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("data.mdb");
$connid=odbc_connect($connstr,"","",SQL_CUR_USE_ODBC);
$issuetime=date("Y-m-d H:i:s");
$sql="insert into test values("","",...)";
$result=odbc_exec($connid,$sql);
if($result) echo "successful";
else echo "failed";
?>
[/php]
access数据库名为data.mdb,里面有一个数据表test,代码运行成功,希望对要使用PHP+Access做php程序的人有所帮助


相关文档:

有关php前途三

关于PHP的前途(三) (来自本站的消息)
6.PHP的简要历史
PHP最初作为一种用Perl写成的简单小巧的CGI工具,被称为“个人主页工具(Personal Home Page Tools)”,后来改称为“个人主页构建工具箱(Personal Home Page Construction Kit)”。
也曾叫做“专业主页工具(Professional Home P ......

fedora下php环境配置

编译安装
apache
下载apache安装
=============================
我把他安装在/usr/local/apache目录下
tar -zxvf apache文件
进入解压后的目录,配置./configure --prefix=/usr/local/apache -enable-mods-shared=all -enable-so -enable-rewrite
make
make install
然后启动/usr/local/apache/bin/apachectl sta ......

一个简陋的支持HTTPS的PHP CURL封装函数

标题有点长,其实就是用来向https服务器post数据
function curlPost($url, $data, $timeout = 30)
{
$ssl = substr($url, 0, 8) == "https://" ? TRUE : FALSE;
$ch = curl_init();
$opt = array(
CURLOPT_URL => $url,
CURLOPT_POST => 1,
CURLOPT_ ......

Month of PHP Security Summary

it is 21th of May. The Month of PHP Security
(http://www.php-security.org) is still running and we have reached a
vulnerability count of 40 vulnerabilities, which is nearly as much as we
disclosed during the whole Month of PHP Bugs in 2007. However there are
11 more days until the end of May and ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号