Works on my localhost running php 5.3.4
Does not work on my VPS hostgator account running 5.3.6
The problem here seems to be the "use" keyword
Code Below
<?php
$video = $this->Video;
$post['Post']['body'] =
preg_replace_callback("/\[\[audio=(.*)\]\]/", function ($match) use ($video) {
return $video->show(array('video' => $match[1]));
}, $post['Post']['body']);
?>
Many thanks for you help.