在PHP里,至少有一种情况内存不会得到自动释放,即便是手动调用 unset()。详情可考:http://bugs.php.net/bug.php?id=33595。 (continue reading…)
MySQL双机热备份试验
在linux服务器lvs负载均衡、双机热备应用中经常用到mysql双机热备,安装和配置过程如下: (continue reading…)
Python文件复制
- Python复制文件在实际应用操作方案的实际应用以及Python复制文件 的相关的代码的详解,如果你对其有兴趣的话,你就可以点击以下的文章浏览我们的文章,望你会有所收获。 (continue reading…)
Fähnchen der Standardsprache in TYPO3 4.5 mit TemplaVoila
Der eine oder andere wundert sich vielleicht, dass nach dem Update auf TYPO3 4.5 und dem Einspielen der neuesten Version von TemplaVoila 1.5.4 trotzdem das Fähnchen der Standard Sprache nicht angezeigt wird oder dass stattdessen nur ein rotes Fragezeichen erscheint.
jquery 新建的元素事件绑定问题
js的事件监听跟css不一样,css只要设定好了样式,不论是原来就有的还是新添加的,都有一样的表现。而事件监听不是,你必须给每一个元素单独绑定事件。
常见的例子是处理表格的时候。每行行末有个删除按钮,点了这个能够删除这一行。 (continue reading…)
如何测试iPad站
有做学过点Web的都知道在用户浏览网页的时候,会默认发送几个信息在Head里,而里面就有一个叫做UA(User Agent)的字符串,这个就是用来识别用户的浏览设备和浏览器的。 (continue reading…)
css实现强制不换行/自动换行/强制换行
强制不换行
div{
white-space:nowrap;
}
自动换行
div{
word-wrap: break-word;
word-break: normal;
}
强制英文单词断行
div{
word-break:break-all;
}
(continue reading…)
typo3 sendNotifyEmail
1. $this->cObj->sendNotifyEmail($msg, $recipients, $cc, $email_from, $email_fromName=”, $replyTo=”);
2. t3lib_div:
function sendNotifyEmail($msg, $recipients, $cc, $email_from, $email_fromName=”, $replyTo=”) {
// Sends order emails:
$headers=array();
if ($email_from) {$headers[]=’From: ‘.$email_fromName.’ <‘.$email_from.’>’;}
if ($replyTo) {$headers[]=’Reply-To: ‘.$replyTo;}
$recipients=implode(‘,’,t3lib_div::trimExplode(‘,’,$recipients,1));
$emailContent = trim($msg);
if ($emailContent) {
$parts = explode(LF, $emailContent, 2); // First line is subject
$subject=trim($parts[0]);
$plain_message=trim($parts[1]);
if ($recipients) t3lib_div::plainMailEncoded($recipients, $subject, $plain_message, implode(LF,$headers), $encoding=’quoted-printable’,$charset=’iso-8859-1′);
if ($cc) t3lib_div::plainMailEncoded($cc, $subject, $plain_message, implode(LF,$headers), $encoding=’quoted-printable’,$charset=’iso-8859-1′);
return true;
}
}
Allow embed (Youtube) HTML tags in the RTE
Options:
RTE.default.proc {
allowTagsOutside = img, table, br, span, hr, h1, h2, h3, h4,h5,h6,embed,object,param
# Allow embed (Youtube) HTML tags in the RTE
allowTags := addToList(object,param,embed)
allowTagsOutside := addToList(object,embed)
}
Page:
# Allow embed (Youtube) HTML tags in the RTE
lib.parseFunc_RTE.allowTags := addToList(object,param,embed)
