Automatically copy a file by clicking a button or link...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • itguy1981
    New Member
    • Mar 2010
    • 4

    Automatically copy a file by clicking a button or link...

    I have an internal site that lists PDF files in a folder on the server (Linux / Apache / PHP). Is there a way to create a button or link that automatically copies the selected PDF to another folder on the server. Basically, the list would show Document1.pdf. There would be a button or link next to it. If the user clicks this button or link, Document1.pdf would be automatically copied into /home/myuser/docsfolder (docsfolder is chmod 777'd). Any help would be much appreciated.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    simple form processing. submit the file name to be copied to a script that copies the file (could be done through the shell or file_put_conten ts())

    Comment

    • itguy1981
      New Member
      • Mar 2010
      • 4

      #3
      Originally posted by Dormilich
      simple form processing. submit the file name to be copied to a script that copies the file (could be done through the shell or file_put_conten ts())
      Dormilich, thanks for the quick response. Is there any way you could provide me with sample code (or point me to a website with sample code)? I failed to mention that when it comes to PHP, I'd have to study a lot just to call myself a newbie.

      Comment

      Working...