Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

copy files on server on request

8:58 am on Jul 2, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 16, 2004
votes: 0

anyone came accross a script such as this...?

1 clicking a link on a page activates the script,

2 the script copies a file (defined by this particular link) from public_ftp/subdirectory to public_html/subdirectory,

3 begins download of that file (the copy sitting in public_html)

4 ...this is optional but if can be done, it would make my day... deletes the copied file from public_html once the download is complete


9:32 am on July 3, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 29, 2003
votes: 0

You can have that a lot easier if you use a little php-script that acts as a "proxy". This way you can give your users the file without having to copy and delete it. If it's sensitive files you can even put them in a folder that's not accessible by http to add some extra security.