Month: May 2011

  • PHP MAIL 抄送(CC)

    PHP MAIL 抄送(CC)

    // 更多报头 $headers .= “From: 姚迎迎 “. “\r\n” .”CC: yao3060@gmail.com, yao3060@hotmail.com”; 突然发现 php mail 函数 抄送的时候, header 里用 单引号 (‘) 竟然会有错误,一定要用双引号。。。。。。 NND 这一直是一个误解,其实 \r\n 必须使用双引号(””)

  • Jquery addClass siblings removeClass

    Jquery addClass siblings removeClass

    开始,第一个元素默认被选择,鼠标经过改变被选择的元素,当鼠标离开,又恢复第一个被选择。 澳星移民 澳星留学 海外房产 澳星之友 澳星知道 关于我们 澳星移民 澳星留学 海外房产 澳星之友 澳星知道 关于我们

  • 使用 PHP 下载文档(PDF)

    使用 PHP 下载文档(PDF)

    How To Use PHP to Force a File Download http://webdesign.about.com/od/php/ht/force_download.htm PHP allows you to change the HTTP headers of files that you’re writing, so that you can force a file to be downloaded that normally the browser would load in the same window. This is perfect for files like PDFs, document files, images, and video…

  • -bash: make:command not found

    -bash: make:command not found

    是一些相关的软件没有安装,如:gcc automake autoconf libtool make ubuntu debian 可以直接 apt-get install gcc automake autoconf libtool make redhat centos: yum -y install gcc automake autoconf libtool make

  • /etc/cron.daily/logrotate:error: error running shared postrotate script for ‘/var/log/mysql.log

    /etc/cron.daily/logrotate:error: error running shared postrotate script for ‘/var/log/mysql.log

    /etc/cron.daily/logrotate: /usr/bin/mysqladmin: refresh failed; error: ‘Access denied; you need the RELOAD privilege for this operation’ error: error running shared postrotate script for ‘/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log ‘ run-parts: /etc/cron.daily/logrotate exited with return code 1 What’s happening is that after all the mysql backing up and everything is done, ubuntu is trying to use the debian-sys-maint user…

  • an unknown filter was not added:includes

    an unknown filter was not added:includes

    Depending on how Apache is configured you may need to add something like the following to your Apache config file: Code: LoadModule include_module modules/mod_include.so or more likely you just need to enable the module: Code: sudo a2enmod include Now restart Apache: Code: sudo /etc/init.d/apache2 force-reload

  • WordPress模板文件基本解释

    WordPress模板文件基本解释

    (一)WordPress基本模板文件,一套完整的WordPress模板包括如下文件,但是只有 index.php和style.css是不能缺少的: style.css : CSS(样式表)文件,不可缺少版权部分,真正CSS样式表可以放在其他文件; index.php : 主页模板,不可缺少;

  • POSTFIX 文档

    POSTFIX 文档

    一、基本配置 介绍 postfix的main.cf文件支持上百个配置参数。幸运的是,所有的参数都有比较合理的默认值。在大多数情况下,你只需要配置2到3个参数值就可以启用postfix邮件系统了。下面的这个链接是postfix配置文件的简要介绍。