摘要:在安装PHP前,有必要先安装apache web服务器,请参考前一篇文章:window 7下安装apache(httpd 2.2.22) 安装php 下载地址:http://windows.php.net/download/ 将php-5.4.3-Win32-VC9-x86.zip解压到C:\wamp\php5.4.3\ 找到PHP配置文件: C:\wamp\php5.4.3\php.in...
阅读全文
摘要:下载地址:http://httpd.apache.org/ Win32 Binary including OpenSSL 0.9.8t (MSI Installer) http://mirror.atlanticmetro.net/apache//httpd/binaries/win32/httpd-2.2.22-win32-x86-openssl-0.9.8t.msi 安装过程,只需要不断...
阅读全文
摘要:本文测试环境: windows server 2008 postgres 1.7.3 找到 postgresql.conf (例如:C:\PostgreSQL\9.1\data\postgresql.conf): 用文本编辑工具打开,Ctrl+F查找listen_addresses。设置如下: listen_addresses = '*' 找到 p...
阅读全文
摘要:postgres 9.1.3 下载地址:http://www.enterprisedb.com/products-services-training/pgdownload windows下面安装postgres 9.1.3需要注意的几个地方: ·安装过程中需要设置密码,指定端口(默认5432),选择locale(使用Default locale) ·安装完成后,将bi...
阅读全文
摘要:有很多PHP加密工具,这里推荐一个本人使用比较多的免费在线PHP加密工具:Byterun Online Free PHP Encoder 例如,加密前PHP代码: 加密后: PHP代码加密后,已经没法阅读,但是仍然可以正确运行。
阅读全文
摘要:当你需要网页在5秒钟或者其他时间间隔后自动刷新,使用本文介绍的meta标签即可实现。这行脚本很简单,但是也很有用。很多网站使用这段脚本跳转到其他的网页或者刷新当前页面。 自动刷新或跳转 HTML 代码: // content = 时间(以秒为单位) // file_name = 想要跳转或刷新的页面 例如: 加入将以上代码放在本站首页,那么本站首页将会每隔5秒钟刷...
阅读全文
摘要:PHP获取图片大小函数。 getimagesize() 能够得到图片及flash(swf)的大小。 语法 list($width, $height, $type, $attr) = getimagesize("image_name.jpg"); 下面是一个实例程序,将image_name.jpg改为您的图片地址 ";echo "Image height " .$height;e...
阅读全文
摘要:jQuery克隆表单元素demoHTML代码: Attendee 1 Booking Details Title: * ...
阅读全文
摘要:主页面index.html中有一个iframe。index页面有背景色,为了让iframe中的页面继承index的背景色,需要设置iframe中的页面背景透明。 给iframe添加: allowTransparency="true" 给所有iframe嵌套的页面的body标签添加 backgorund:transparent这样就可以了。
阅读全文
摘要:类似51job网上,用户点击编辑后,个人信息可以编辑的功能。编辑前状态: 实际上,我们看到的编辑前的input添加了以下样式: .readonly{border:none; background-color:inherit} 所以看上去,是没有边框的,而且背景色继承了父容器的颜色。 -------------------------------------------------------...
阅读全文
摘要:windows server 2008下golden ftp无法访问解决方案 这里server的IP为:123.123.123.123 server :telnet 127.0.0.1 21 可以连上 server : telnet 123.123.123.123 21 可以连上 client: telnet 123.123.123.123 21 连不上 client: ftp 12...
阅读全文
摘要:jQuery动态创建表单元素例子,保存为test.html即可测试 Name:
阅读全文
摘要:首先看看何为构造函数的隐式转换,#include using std::cout;using std::endl;class A{public: A() { cout<<"constructor A"<<endl; }};class B{ public: B(A& a) { cout<<"constructor B"<<endl; }};void func(B b){ cout<...
阅读全文