i have a absolute path. it must convert to relative path. how?
as example:
$absolute="c:\www\php\job\media\Image\M5.jpg"
the relative path must be: /media/Image/M5.jpg
is there any way?
i found this way:
$str=str_replace("\\","/",$absolute);
$pos = strpos($srt, '/media/Image/');
$str=substr($str, $pos);
is there better way?