You could use str_replace function to replace "//" with "/".
$uploadsDirectory = $_SERVER['DOCUMENT_ROOT'] . $directory_self . 'uploaded_files/';
$uploadsDirectory = str_replace("//","/",$uploadsDirectory);
There are many other ways of fixing the problem. str_replace just seems the easiest to me.
Reputation Points: 232
Solved Threads: 137
Practically a Master Poster
Offline 665 posts
since Nov 2007