[eluser]LagniappeInternet[/eluser]
Code:
$relative_url = str_replace ( $_SERVER['DOCUMENT_ROOT'], "" , $uploaded_data[‘file_path’] )
So if the upload was /www/dev_site/site/mooksrds/public_html/testing/
and the Doc root was /www/dev_site/site/mooksrds/public_html
$relative_url should = /testing/