Heya, SmartPHP.
The only way you'd be able to do that would be to convert the directory structure into a transportable format, such as a ZIP archive.
To do this, you can either use PHP's
ZIP functions (if you compiled / installed PHP --with-zip.
Or you can use shell programs such as bzip2 or gzip, invokable via the exec() function.