2012-10-18 一抹阳光 
                    网站程序
     
                        
            
		论坛:MyBB(支持Mysqli、Mysql、PostgreSQL、SQLite)、phpBB(支持Mysql、PostgreSQL、
SQLite、MsSql2000+/ODBC、Firebird 、Oracle)、FluxBB/PunBB(支持MySQL、PostgreSQL、SQLite等数据库)、FUDforum(支持MySQL、
PostgreSQL、DB2、SQL Server、Oracle、SQLite 和 Firebird 数据库)、Simple Machines 
Forum(支持Mysql、PostgreSQL)
CMS:drupal、joomla
博客:WordPr...[
阅读全文]
            
            
                评论(0)
                浏览(3598)
            
            
                        
            2012-10-18 一抹阳光 
                    数据库
     
                        
            
		Export error: Failed to execute pg_dump (given path in your 
conf/config.inc.php : /usr/bin/pg_dump). Please, fix this path in your 
configuration and relog.
 
解决办法:
修改phpPgAdmin的conf/config.inc.php文件
$conf['servers'][0]['pg_dump_path'] = ‘E:/LAMP/PostgreSQL8.3/bin/pg_dump’;
$conf['servers']...[
阅读全文]
            
            
                评论(0)
                浏览(3744)
            
            
                        
            2012-10-18 一抹阳光 
                    数据库
     
                        
            修改config文件夹中的config.inc.php:
// If extra login security is true, then logins via phpPgAdmin with no
// password or certain usernames (pgsql, postgres, root, administrator)
// will be denied. Only set this false once you have read the FAQ and
// understand how to change PostgreSQL’s pg_hba.conf to en...[
阅读全文]
            
            
                评论(0)
                浏览(4156)
            
            
                        
            2012-10-18 一抹阳光 
                    数据库
     
                        
            
		多次在网上搜索解决方法,已完成以下操作:
1、修改php.ini
2、确认C:\php\ext\下php_pgsql.dll存在
3、php.ini中“;extension=php_pgsql.dll”的“;”去掉了
4、将libpg.dll放至windows\system32下
5、重启apache多次
还要加载好几个dll文件,都在postgresql的bin目录下,列在这里,跟我碰到一样问题的可以看看啊!
comerr32.dll
gssapi32.dll
k5sprt32.dll
krb5_32.dll
libeay32.dll
libiconv2.dll
libintl3.dl...[
阅读全文]
            
            
                评论(0)
                浏览(3602)
            
            
                        
            2012-10-18 一抹阳光 
                    网站前端
     
                        
            <div style=”float:left;width:468px;”>
468*60广告位代码
</div>
<div style=”float:right;width:468px;”>
468*60广告位代码
</div>
<div style=”clear:both; height:2px; line-height:2px;”></div>
效果示意图:
...[
阅读全文]
            
            
                评论(0)
                浏览(2944)
            
            
                        
            2012-10-18 一抹阳光 
                    网站前端
     
                        
            jquery-1.4.2.min_.rar
jquery.lazyload.rar
1.导入JS插件
 
<script src=”jquery.js” type=”text/javascript”></script>  
<script src=”jquery.lazyload.js” type=”text/javascript”></script>
2.在你的页面中加入如下的javascript:
 
$(“img”).lazyload();
 
 
这将会使所有的图片都延迟加载。 
当然插...[
阅读全文]
            
            
                评论(0)
                浏览(3078)
            
            
                        
            2012-10-18 一抹阳光 
                    杂七杂八
     
                        
            接口地址:http://www.weather.com.cn/data/sk/101010100.html 
http://www.weather.com.cn/data/cityinfo/101010100.html 
http://m.weather.com.cn/data/101010100.html
 以json格式提供,格式如下 {“weatherinfo”:{
//基本信息;
“city”:”北京”,”city_en”:”beijing”,
“date_y”:”2011年8月10日”,”date”:”辛卯年”,”week”:”星期三”,”fchh”:”18″,”...[
阅读全文]
            
            
                评论(0)
                浏览(2650)
            
            
                        
            2012-10-18 一抹阳光 
                    PHP
     
                        
            
		curl_init — 初始化一个CURL会话,如果提示Call to undefined function curl_init那么需要如下操作即可。
在网上下载了一个模拟登陆discuz论坛的php程序范例,试运行时出现“Call to undefined function 
curl_init”这个错误提示,没有定义的函数,也就是php还没打开对curl_init函数的支持。Google了一番终于解决了,方法如下:
以windows下的php+apache为例。
首先,打开php.ini,找到“extension=php_curl.dll”,然后去掉前面的“;”注释,重启apache...[
阅读全文]
            
            
                评论(0)
                浏览(3134)
            
            
                        
            2012-10-18 一抹阳光 
                    PHP
     
                        
            这样的语句,很显然,造成这个原因是因为setcookie造成的,查了一下网上,有如下的解释: cookie本身在使用上有一些限制,例如:
1.呼叫setcookie的敘述必須放在<html>标签之前
2.呼叫setcookie之前,不可使用echo
3.直到網頁被重新載入後,cookie才會在程式中出現
4.setcookie函数必須在任何資料輸出至浏览器前,就先送出
5.……
基於上面這些限制,所以執行setcookie()函数时,常會碰到”Undefined index”、”Cannot modify header 
information – headers already ...[
阅读全文]
            
            
                评论(1)
                浏览(3625)
            
            
                        
            2012-10-18 一抹阳光 
                    环境架设
     
                        
            写在前面的话:我们都知道,目前流行的vps解决方案有xen和openvz。vpn软件有pptp和openvpn。那么一般来说pptp只能运
行在xen的vps或者整机上。如果你的vps基于openvz,那么你只能装OpenVPN。下面我用openvz的vps测试安装OpenVPN 。
一. OpenVPN 安装环境
 Server 端的环境
 1. CentOS, kernel版本: 2.6.18, IP 为 221.233.59.16(ADSL拨号)
 2. kernel 需要支持 tun 设备, 需要加载 iptables 模块.(chkconfig --level 35 iptables...[
阅读全文]
            
            
                评论(0)
                浏览(5004)