Page 1 of 1

[SOLVED] Copying from clipboard

Posted: Tue Nov 16, 2004 7:02 am
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

Posted: Tue Nov 16, 2004 8:37 am
by phpScott
client side vs served side.
javascript vs php

the clipboard is clientside therefore php can't access it.

Posted: Tue Nov 16, 2004 9:02 am
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

Posted: Tue Nov 16, 2004 11:05 am
by phpScott
Where abouts did you find? it as it sounds usefull :idea:

Posted: Wed Nov 17, 2004 3:43 am
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