you can try to use stristr function

PHP Code: 
$download_link shareonlinebizupload($filename,$filelocation,$user$pass); // Let's upload
if(stristr($download_link,'share-online.biz')) echo 'uploaded';
else echo 
'failed'//or upload again