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…)
Archive for 十月, 2013
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’]
Faster DNS
设备DNS服务器地址为:74.117.62.158
新增国内DNS:42.121.236.241
IPv6: 2001:470:C:108::2
2001:470:66:3b0::2
