$("#formid").children("table:last").children("tbody").children("tr")[0].children("td")[0].children("select");
為了避免這種蠢斃了的情況
jQuery很貼心的給了我們find(大心)
上面的笨句子就可以改成
$("#formid").children("table:last").find("select");
世界整個變美好了(茶)
$("#formid").children("table:last").children("tbody").children("tr")[0].children("td")[0].children("select");
$("#formid").children("table:last").find("select");
local_umask=002
pasv_enable=YES
pasv_min_port=xxxxxx
pasv_max_port=xxxxxx
chroot_local_user=YES
user_config_dir=/etc/vsftpd/userconf
vi /etc/vsftpd/userconf/user1
local_root=/var/www/html
cp /usr/share/doc/vsftpd-2.0.5/vsftpd.xinetd /etc/xinetd.d/vsftpd
FROM_UNIXTIME(unix_timestamp)
mysql> SELECT FROM_UNIXTIME(1196440219);
-> '2007-11-30 10:30:19'
Jul 14 17:37:54 myhost kernel: Aborting journal on device dm-4.
Jul 14 17:37:54 myhost kernel: __journal_remove_journal_head: freeing b_committed_data
Jul 14 17:37:54 myhost kernel: EXT3-fs error (device dm-4): ext3_lookup: unlinked inode 58078839 in dir #58073509
Jul 14 17:37:54 myhost kernel: ext3_abort called.
Jul 14 17:37:54 myhost kernel: EXT3-fs error (device dm-4): ext3_journal_start_sb: Detected aborted journal
Jul 14 17:37:54 myhost kernel: Remounting filesystem read-only
# e2fsck -a /dev/vg_data/lv_data
我是用lvm所以磁碟路徑是長這樣@@;
# mount -t tmpfs tmpfs /session
include_once('pclzip.lib.php');除了這點之外,最令我頭大的是若檔名含有中文,則下載下來的壓縮檔內檔名便會出現亂碼。雖然有在寫網頁的人都知道要避免使用中文檔名,但是一般使用者可是不會管你那麼多的。由於OS是linux介面,而且這邊使用的pclzip似乎沒有支援utf-8,所以才會產生亂碼的情況。這時候需要修改pclzip.lib.php的第2780行附近,function privAddFile內其中一段設定打包進壓縮檔檔案名稱的地方(按照上面的例子來說stored_filename就會是file.txt跟text.txt,因為路徑data被設定為去除了--PCLZIP_OPT_REMOVE_PATH, 'data')
$archive = new PclZip('archive.zip');
$v_list = $archive->create('data/file.txt,data/text.txt',
PCLZIP_OPT_NO_COMPRESSION,
PCLZIP_OPT_REMOVE_PATH, 'data',
PCLZIP_OPT_ADD_PATH, 'install');
if ($v_list == 0) {
die("Error : ".$archive->errorInfo(true));
}
$p_header['filename'] = $p_filename;這樣就可以看到中文囉!
// TBC : Removed $p_header['stored_filename'] = $v_stored_filename;
$p_header['stored_filename'] =
iconv('utf-8','big5',$p_filedescr['stored_filename']);
pecl install apc若沒有意外的話會碰上
Sorry, I was not able to successfully run APXS囧>,那是apache的應用程式相關
yum install httpd-devel就OK囉!
error: pcre.h: No such file or directory
yum -y install pcre-devel
系統寄信給我了 = =aYou have mail in /var/spool/mail/root
Auto-Submitted: auto-generated
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
/root/backup.sh: line 3: ncftpput: command not found
/usr/local/bin/ncftpput -u..........
kpathsea: Running mktexfmt latex.fmt
kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/.texmf-var/web2c' does not exist.
fmtutil: format directory `/.texmf-var/web2c' does not exist.
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
/usr/bin/dvips: ! DVI file can't be opened.
sh: /var/www/html/moodle/filter/tex/mimetex.linux: Permission denied
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
/usr/bin/dvips: ! DVI file can't be opened.
sh: /var/www/html/moodle/filter/tex/mimetex.linux: Permission denied
sh: /var/www/html/moodle/filter/tex/mimetex.linux: Permission denied
sh: /var/www/html/moodle/filter/tex/mimetex.linux: Permission denied
kpathsea: Running mktexfmt latex.fmt
fmtutil: format directory `/.texmf-var/web2c' does not exist.
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
/usr/bin/dvips: ! DVI file can't be opened.
convert: unable to open image `/backup/temp/latex/d1e56126337cd6e29b16fe759232ce90.ps': No such file or directory.
http_caching=none
[mch1]# vi /etc/rsyncd.secrets
path = /backup
auth users = tatsumilk
uid = root
gid = root
secrets file = /etc/rsyncd.secrets
read only = no
不用想也知道又是SElinux了...
550 create directory operation failed
重開機後...終於啊...
# vi /etc/selinux/config
設定SELINUX=disable
500 OOPS: cannot change directory:/home/
但會出現
setsebool ftpd_disable_trans 1
其實是SElinux限制住了,所以改key
Could not change active booleans: Invalid boolean
就可以囉!
setsebool -P ftp_home_dir=1
把檔案內文全刪只剩session_start();卻還是出現上述錯誤這就...Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at .... )