I think the issue starts with where is yurl.myhost.org coming from on the
as I'm betting your real path is /home/www/myurl.myhost.org/htdocs/uploads/Availability/resources_1/thumb_346.jpgThere is a path issue with the orginal image!
Does this look right?
Path:/home/www/myurl.myhost.org/htdocs/yurl.myhost.org/uploads/Availability/resources_1/thumb_346.jpg
subdomain or not it shuold not matter... the code below checks for http then gets the length of the $config['root_url'] if match is found and then replaces from the start of the string to the end of the root url.
Let start by find out what your paths are.. as this is well tested and should work, and both NikNak and kendo451 confirmed it.. :/
Code: Select all
if($strip_tags){
if (preg_match('#<(.*?)src="(.*?)"(.*?)/>#', $path, $matches)) {$path = $matches[2];}
if ((substr($path, 0,5))=="https"){$L=strlen($config['ssl_url']);$path = substr_replace($path, '', 0, $L);}
if ((substr($path, 0,4))=="http"){$L=strlen($config['root_url']);$path = substr_replace($path, '', 0, $L);}
$matches = array();
if (preg_match('#[http|https]://(.*?)/(.*?)#', $path, $matches)) {$path = $matches[0];}
}