我遇到了 PHP 5.3 和 Joomla 的问题,并且错误显示如下 preg_replace() [function.preg-replace]: Unknown modifier 'w' in /var/www/
我的代码
$params = $this->item->params;
$images = json_decode($this->item->images);
$urls = json_decode($this->item->urls);
$canEdit = $this->item->params->get('access-edit');
$user = JFactory::getUser();
$imagesJson = json_decode($this->item->images);
$images_stringPath = substr($imagesJson->image_fulltext, 0,strripos($imagesJson->image_fulltext, '/'));
$path = "/".$images_stringPath;
$tmp_filename=preg_replace($_SERVER["DOCUMENT_ROOT"].$path.'/','',$value);