php - how to remove the subdomain from external video links only -


we have info being inputted on subdomain (www.agent.xxxx.com) , posting results editor on main site (www.xxxx.com) editor displayed correct except external video links. using code here results video links adding subdomain agent/ in front of link causing error , resulting in agent/www.youtube.com/xxxxxx

we need correct on external links

<?php     $this->result->aboutme = str_replace('src="', c="agents/', $this->result->aboutme);          echo $this->result->aboutme; ?> 


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -