Archive for 十月, 2013

Working with multiple PHP versions on MAC OS-X

Today I had to update a project that was developed using WordPress and PHP 5.3. Today I have PHP 5.4 installed on my machine and this newer version abandoned some old features, and you have some Fatal errors like Call-time pass-by-reference has been removed. The solution was go back to PHP 5.3 and do the updates on my the project, because the production server is with PHP 5.3 too. (continue reading…)


typo3 imagemagick pdf pages

//test
        $picConf = array();
        $picConf['image.']['file'] = t3lib_extMgm::extPath($this->extKey).'pi1/test1.pdf';
        if(!is_file($picConf['image.']['file'])){
            $picConf['image.']['file'] = "";
        }
        $theImgCode = '';
        if(is_file($picConf['image.']['file'])){
            $picConf['image.']['file.']['maxW'] = $this->conf['maxW'] ? $this->conf['maxW'] : 300;
            $picConf['image.']['file.']['maxH'] = $this->conf['maxH'] ? $this->conf['maxH'] : 600;
            $picConf['image.']['file.']['frame'] = 1;
            $picConf['image.']['altText'] = '';
            $picConf['image.']['titleText'] = '';
            $content .= $this->cObj->IMAGE($picConf['image.']);
        }

        //S1
        $document = new Imagick($picConf['image.']['file']);
        echo $document->getNumberImages();
        //S2
        $img_info = exec(t3lib_div::imageMagickCommand('identify', $cur_path));
        //echo .*\.pdf[3]

Or global: $GLOBALS[‘TYPO3_CONF_VARS’][‘GFX’][‘im_noFramePrepended’]

1 Comment more...

Faster DNS

设备DNS服务器地址为:74.117.62.158
新增国内DNS:42.121.236.241

IPv6: 2001:470:C:108::2
2001:470:66:3b0::2


DAM Replace 时间字段值变更

DAM replace的时候自动加减了UTC时间. 配置禁止即可.
dam/lib/class.tx_dam_db.php


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