I'm trying to save file from extension level by calling
Code: Select all
public function viewtopic_modify_post_data($event)
{
$post_list = $event['post_list'];
$post_list = array_slice($post_list, 0, 1);
$event['post_list'] = $post_list;
file_put_contents('http://localhost/phpBB3/my_path/test.txt', json_encode($post_list), FILE_APPEND | LOCK_EX);
}
BTW. Then instruction of modification post_list array doesn't work.
Thanks
Mike