This extension will allow your site to work under php's safe_mode restrictions.
With linkAssets it was nearly working perfectly but it had a problem when publishing single files it tried to create a directory again - this is fixed with this extension. Through this is based on the linkAssets feature it only works for the platforms where linking is working (i think most unixes and modern windows)
Setup is very easy: just add this to your config:
'components'=>array( 'assetManager'=>array( 'class'=>'application.extensions.SafeModeAssetManager', ),