8 Best Php Libraries for Developers

 

php-error

The goal of the Standard PHP Library-or SPL, in brief-is to provide a standard library of interfaces which allows developers to take full advantage of object-oriented programming in PHP 5.Therefore in this article we have collected 8 of the best PHP Libraries which will assist and help developers to simplify their work and serve their development tasks.

If you like the article you might be interested in our other article on 8 Best Php Tools and Applications for Developers” (continue reading…)


typo3 upgrade issue

If you want to upgrade typo3 to 4.6 or 4.7, there maybe is a strange issue broken your upgrade.

File: t3lib/class.t3lib_autoloader.php->createCoreAndExtensionRegistry

$classRegistry = array_merge($classRegistry, require($extensionAutoloadFile));

Because some of error ext_autoload.php in Extensions. It will attack array_merge.

Solution is:

if(is_array(require($extensionAutoloadFile))){
    $classRegistry = array_merge($classRegistry, require($extensionAutoloadFile));
}

If always error, remark the lines like pic and run, then rollback.

Experience:
1. typo3 4.6, 4.7 auto extension load有bug, array_merge要判断is_array, 否则白屏
2. felogin插件不兼容, Add ts的code不要加trim.
3. md5登录auth修改
4. $this->LOCAL_LANG取语言方法兼容性修改, value为array, source, target
5. 4.7开始数据库强制set names utf8; 为了兼容可把这个强制性去掉. config_default.php里面修改.
6. 4.4->4.7先4.4->4.5然后4.5->4.7
7. Templavoila, DAM需要升级,否则出现异常
8. 如果某些ajax 500 error, 可尝试TS: no_cache=1
9. t3lib_htmlmail发邮件方法在4.7己废弃, 发送失败, newsletter内嵌images功能需要fix.>>己用新方法t3lib_mail_Message解决, demo see below.
10. 有时候install进不去,可能是localconf.php中setMemoryLimit太小了。可删除限制。

Demo:

$mail = t3lib_div::makeInstance('t3lib_mail_Message');
            $mail->setFrom(array($sender => $sender_name));
            $mail->setReplyTo($reply_to);
            $mail->setTo($row['email']);
            $mail->setSubject($subject);

            $body = 'Any html code!';

            preg_match_all("/\embed(Swift_Image::fromPath($src));
                    if($cid){
                        $body = str_replace($src, $cid, $body);
                    }
                }
            }
            $mail->setBody($body, 'text/html', 'utf-8');
            $mail->send();

Typo3 6.2 for windows plugin manager:


ThreadStackSize 8388608


常见的 .htaccess 使用技巧

Apache Web 服务器可以通过 .htaccess 文件来操作各种信息,这是一个目录级配置文件的默认名称,允许去中央化的 Web 服务器配置管理。可用来重写服务器的全局配置。该文件的目的就是为了允许单独目录的访问控制配置,例如密码和内容访问。 (continue reading…)

1 Comment more...

插件执行顺序

1. mapping的先后顺序引起多插件配合 session cache未即时生效.
2. Cache的Plugin优先于USER_INT执行

网站如何做到完全不需要 jQuery ?

jQuery 是现在最流行的 JavaScript 工具库。

据统计,目前全世界 57.3% 的网站使用它。也就是说,10 个网站里面,有 6 个使用 jQuery。如果只考察使用工具库的网站,这个比例就会上升到惊人的 91.7%。 (continue reading…)


20段Web开发不容错过的CSS代码

Web开发技术每年都在革新,浏览器已逐渐支持CSS3特性,并且网站设计师和前端开发者普遍采用这种新技术进行设计与开发。但仍然有一些开发者迷恋着一些CSS2代码。

本文将分享20段非常专业的CSS2/CSS3代码供大家使用,你可以把它们保存在IDE里、或者存储在CSS文档里,这些代码片段绝对会给你带来意外的惊喜。
(continue reading…)


Get lastsql

$GLOBALS['TYPO3_DB']->store_lastBuiltQuery = 1;

// process query
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($select_fields,$from_table,$where_clause,$groupBy,$orderBy,$limit);

// the complete SQL-Statement
echo $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery;

html转义字符

编码转换(to Unicode)
(程序代码来源于网络)

Js版


(continue reading…)


武汉及武汉周边的钓场位置和收费

梨园医院:收费:15元/天,上午10点以后10元,坐着等收钱。
主要鱼种:鲫鱼,翘嘴,鲤鱼,大量小鳊鱼和小草鱼,小花白鲢。鱼种不限。
钓位:南面水较深。
交通路线:梨园医院(1路车终点站)旁 (continue reading…)


Certification、Provisioning、Keychain、APP IDs概述

1.  Certification(证书)

证书是对电脑开发资格的认证,每个开发者帐号有一套,分为两种:

1)   DeveloperCertification(开发证书)

安装在电脑上提供权限:开发人员通过设备进行真机测试。

可以生成副本供多台电脑安装;

2)DistributionCertification(发布证书)

安装在电脑上提供发布iOS程序的权限:开发人员可以制做测试版和发布版的程序。

不可生成副本,仅有配置该证书的电脑才可使用;(副本制做介绍在下面Keychain中介绍) (continue reading…)


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress