i have these functions url_to_absolute its work good but not work if the image url has space or arabic chars
this working example
<?php
require_once('url_to_absolute.php');
$url = 'http://site.com/news/view.aspx?id=23032012';
echo url_to_absolute($url, '/uploadedimages/Sections/Politics/Arabic_World/original/Administrative-detention.jpg'), "
";
?>
look here if we have space in "Arabic World"
<?php
require_once('url_to_absolute.php');
$url = 'http://site.com/news/view.aspx?id=23032012';
echo url_to_absolute($url, '/uploadedimages/Sections/Politics/Arabic World/original/Administrative-detention.jpg'), "
";
?>
it will not work and if there is arabic chars too