[SOLVED] Copying from clipboard

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

[SOLVED] Copying from clipboard

Post by hairyjim »

Hi,

Anyone know if it is possible to use PHP to paste from the clipboard?

I have checked the manual and not found any ref's to it.

Jim
Last edited by hairyjim on Tue Nov 16, 2004 9:02 am, edited 1 time in total.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

client side vs served side.
javascript vs php

the clipboard is clientside therefore php can't access it.
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post by hairyjim »

Yeah sorry I should have been a bit more detialed.

The clipboard is on the server. I have a program I need to run that is executed via exec()

I was not getting any output and noted in the manual it only read out the last line of the cmd prompt.

So my thought was to copy the apps output to the clip board and get it from there. Then I read some more of the manual and figured out what I needed to do with php to get it all working.

Jim
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

Where abouts did you find? it as it sounds usefull :idea:
hairyjim
Forum Contributor
Posts: 219
Joined: Wed Nov 13, 2002 9:04 am
Location: Warwickshire, UK

Post by hairyjim »

I just re-read my post and it sounds as if I found a solution to copy from the clip board when in fact I found out how to use the exec() command properly :wink:

Im not sure if it is possible to copy to/from the clipboard
Post Reply