php-like way to attach external files