I have a problem,I want to replace a text with str_replace using php.I have a textarea in tinymce editor with text and I loaded image there.The image is saved in database ../image.png now I want to replace ../ with storage.com but don't replace and I don't understand where is the problem
$text = $this->input->post('text', TRUE);
$text = addslashes($text);
$text = str_replace('../','http://storage.com/',$text);
Help me please.