Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function upload_to_cdn($filename) {
- $username = get_conf('cdn_username');
- $password = get_conf('cdn_password');
- $remote = get_conf('cdn_remote_host');
- $new_path = relpath($filename, get_conf('document_root'));
- ftp_upload($filename, $newpath, $remote, $username, $password);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement