• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
zzzzzzz
博客园 首页 新随笔 联系 订阅 订阅 管理

随笔分类 -  PHP

 
fatal error: Call to undefined function mysqli_connect()
摘要:在搭建PHP5.6+APACHE2.4+MYSQL5的平台时,测试是否成功连接mysql, 测试程序index.php没有出现mysql的信息所以使用另外一个程序来连接mysql出现错误提示fatal error: Call to undefined function mysqli_connect(... 阅读全文
posted @ 2014-10-30 20:28 meredith.z 阅读(542) 评论(0) 推荐(0)
修改HTTPD.CONF中的DocumentRoot,出现 You don't have permission to access /??? on this server.
摘要:apache 2.4修改/conf/extra/httpd-vhosts.confDocumentRoot '${SRVROOT}/htdocs' 改成你需要的地址 阅读全文
posted @ 2014-10-30 15:59 meredith.z 阅读(345) 评论(0) 推荐(0)
echo, print, print_r
摘要:echo 不是函数,没有返回值,因此只是用作输出的话会更快print 和 print_r 有返回值,区别在于:print 用于打印一个字符串,print_r 可以打印一些复合类型,如:$arr=array("h"=>"hello", "w"=>"world");print $arr;=> Arrayprint_r($arr);=> Array ( [h] => hello [w] => world )print_r 打印出复合类型的内容,一般用于调试中。 阅读全文
posted @ 2013-10-18 12:08 meredith.z 阅读(183) 评论(0) 推荐(0)
2-legged oauth & 3-legged oauth
摘要:3-legged oauthresource owner, client, server.resource owner 给client访问权限去访问resource owner在server上的resource,但是resource owner和client不共享credentials(用户名和密码)。1. client在server上注册,获得client credentials(包括consumer key和consumer secret)2. client从server获得temporay credentials(即request token)3. client将user-agent定向 阅读全文
posted @ 2013-09-20 12:12 meredith.z 阅读(439) 评论(0) 推荐(0)
php 无法连接mysql
摘要:sql_connect,sqli_connect, 或new sqli() 无法建立mysql连接1. php.ini 中; extension=php_mysql.dll 和 ; extension=php_mysqli.dll 前的分号去掉2.在apache httpd.conf 中添加LoadFile "php中libmysql.dll的路径"LoadModule php5_module "php5apache2_2.dll的路径"PHPIniDir "php的路径"或libmysql.dll文件放入目录C:\Windows\s 阅读全文
posted @ 2013-09-06 22:49 meredith.z 阅读(205) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3