-
How to export TXT file on server to clipboard?
How to export TXT file on server to clipboard?
-
-
You can't.
You can use file_get_contents('FILENAME') to get the data in the file, but you cannot put it on the user's clipboard because that is not allowed in the browser. Even if it was, you couldn't do it in PHP because that is just operating on the server. You would need to use javascript, flash or something else working inside the browser, not on the server.
If you actually meant the clipboard of the server, I really have no idea, but you could probably do it with some sort of linux command using exec('CMD') and including the text in the exec() call.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
-
Er, no, not really. The clipboard is part of X, and most servers don't run a graphical interface.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks