PHP

ApacheFreeBSD

php4-4.4.2_1→php4-4.4.4_1(FreeBSD)アップグレード後Apacheが上がらない

 ソフトウエアは機能や性能面の向上だけでなくセキュリティーの面からもアップデートは頻繁に行いたいものだ。昨日から本日にかけて当サーバにていくつかのアップデートを実施したのでその内容を書き留めておく。

Placing the contents of a block in any location

Placing the contents of a block in any location


$output = module_invoke('search', 'block', 'view', 0);
print $output;
?>

Including another page in your node (or another page)

Including another page in your node (or another page)

This is the leading text before the calendar


// We save and restore the real path for the page
$q = $_GET['q'];
// Change event to the path you want, this is the part after q= (or after the base path if you have clean URLs enabled)
// The call to drupal_get_normal() allows for using path aliases.
$_GET['q'] = drupal_get_normal_path('event');
// Get and print the output for just the content associated with the path
// If you see the complete page within a page it means the path callback is probably calling theme('page', ....)

PHPアクセレータ導入

eAcceleratorとZend Optimizer3を導入

その為一時サーバ停止しました。

詳細はブログ記事PHP高速化を参照

 

PHPの高速化(eAccelerator+ZendOptimizer3)

 PHPを多用しているこのサイトにとってPHPの高速化は必然である。
以前Turck MMCacheを導入して対処してあったがAPCの導入に失敗しているためなんとなく満足できてなかった。

コンテンツの配信