![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LAMP
文章平均质量分 56
search_fish
为理想而奋斗。
展开
-
使用window.showModalDialog弹出的模态窗口中打印功能的实现
由于网站模块开发的需要 遇到在弹出的模态窗口中实现打印功能的问题 把自己的解决方法记录如下:方法一、使用对象实现在弹出模态窗口后自动打印模态窗口中的内容由于将对象放在弹出的模态窗口中无法实现打印功能,所以将对象放在弹出模态窗口的页面中。parent.php:<!--var webbrowser = window.document.getElementById("We原创 2009-04-08 21:15:00 · 5061 阅读 · 5 评论 -
Ubuntu 11.10下如何使得Apache2支持mod_rewrite模块
1, sudo a2enmod rewrite2, vim /etc/apache2/sites-enabled/000-default在中添加AllowOverride All原创 2012-04-09 13:20:41 · 272 阅读 · 0 评论 -
给screen设置自定义的名字
screen -S SESSIONNAME is good for starting a session with a name, but if you start a session and later decide to name it, enter command mode (C-a :) and then enter the command sessionname SESSIONNAME.转载 2012-02-17 15:05:22 · 617 阅读 · 0 评论 -
在RHEL 5.4(Tikanga)下搭建PHP+Memcached
根据本文来搭建PHP+Memcached的前提是PHP 5.3.4和Apache 2.2.3已经安装,接下来依次安装Memcached(服务器)和PHP的两个扩展memcache或者memcached(实际使用中,可以选择其中一个。)1)安装Memcached(服务器)a, 下载并编译安装libeventwget http://www.monkey.org/~provos/libe原创 2011-11-03 15:39:32 · 474 阅读 · 0 评论 -
在RHEL 5.3(Tikanga)上配置Apache + FastCGI(mod_fastcgi) + PHP
<br />一,使用软件的详细版本信息如下:<br />Apache(apache 2.2.15)<br />Apache FastCGI module(mod_fastcgi-2.4.6)<br />PHP 5.3.3(php-cgi)<br /> <br />二,详细的配置步骤:<br />(下面步骤的前提是Apache和PHP(php-cgi)均已经安装)<br />1,安装mod_fastcgi模块<br />1)下载:<br />wget http://www.fastcgi.com/dist/m原创 2011-05-24 11:17:00 · 596 阅读 · 0 评论 -
在RHEL 5.3(Tikanga)上配置Apache + FastCGI(mod_fcgid) + PHP
<br />一,使用软件的详细版本信息如下:<br />Apache(apache 2.2.15)<br />Apache FastCGI module(mod_fcgid 2.3.6)<br />PHP 5.3.3(php-cgi)<br /> <br />二,详细的配置步骤:<br />(下面步骤的前提是Apache和PHP(php-cgi)均已经安装)<br />1,安装mod_fcgid模块<br />1)下载地址:<br />http://httpd.apache.org/download.cgi原创 2011-05-20 14:30:00 · 1268 阅读 · 0 评论 -
在Ubuntu 10.04.2 LTS上安装 Oracle SQL Developer3.0 (3.0.04.34)
<br />1,安装OpenJDK<br />sudo apt-get install openjdk-6-jdk<br /> <br />2,下载Oracle SQL Developer3.0 (3.0.04.34)的rpm(下载的时候需要oracle帐号,可以免费注册一个。):<br />http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index-098778.html<br /> <br />3,使用a原创 2011-05-16 16:45:00 · 614 阅读 · 0 评论 -
Linux上手动更新locate数据库
<br />在Ubuntu 10.04.2 LTS(lucid)和Red Hat Enterprise Linux Server release 5.4 (Tikanga)下:<br />sudo updatedb原创 2011-05-16 16:03:00 · 1433 阅读 · 0 评论 -
查询某表中存在重复的记录
下面的例子中是根据一个field来判断是否为重复记录,在某些特定需求下,可能需要根据多个field来判断。假设某表employees有如下三列:pk, id, email可以使用下面的SQL语句来列出存在重复的记录select * from employees where id in (select id from employees group by id having count(id) > 1);原创 2011-03-22 11:11:00 · 485 阅读 · 0 评论 -
在RHEL 5.4上编译安装MySQL 5.1.54并使之支持SphinxSE
操作系统:RHEL 5.4下载MySQL 5.1.54:wget http://mysql.ntu.edu.tw/Downloads/MySQL-5.1/mysql-5.1.54.tar.gz -c下载SphinxSE 1.10-beta:wget http://sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz -c详细操作步骤:cd ~tar -xzvf sphinx-1.10-beta.tar.gztar -xzvf mysql-5.1.54.tar.原创 2010-12-23 17:06:00 · 715 阅读 · 0 评论 -
不同系统下回车换行符的使用可能导致发送出去的邮件不正常
在使用PHP编写一段发送邮件的代码时 由于对回车换行符的错误使用导致程序在开发环境中正常工作 在部署到生产环境时出现问题详细信息:a, 开发环境Red Hat 5.4(Tikanga)b, 生产环境FreeBSD 6.1c, 示例代码如下:$email_3 = 123@321.com;$headers = "MIME-Version: 1.0";$headers .= "/r/nContent-Type: text/html; charset=iso-8859-1";$headers .= "/r/nCo原创 2010-09-02 14:40:00 · 884 阅读 · 3 评论 -
IE下WEB开发辅助工具
http://www.ieinspector.com/IE WebDeveloper、HTTP Analyzer和AxScripter笔者日常开发中使用IE WebDeveloper V2和HTTP Analyzer V6 可惜三款工具都是付费的这里是一个国内的IE WebDeveloper V2注册破解版下载地址:http://www.3ddown.com/soft/15原创 2012-04-27 13:57:47 · 480 阅读 · 0 评论