wormboy__6
asked on
Reading/writing files
Is it possible to open a file from the net..and then write the data from that file to the users local drive?
If it is possible, could someone please provide me with some code to do it.
Thanks
If it is possible, could someone please provide me with some code to do it.
Thanks
ASKER
ok, how do i make this into a workable cgi?
Do i need a certain programme or compiler?
Do i need a certain programme or compiler?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
well can you call windows api functions on the client from a perl script?
If the client is the one who is running the perl script.
ASKER
im talking about running a script on the net..and people connecting to it via their browser.
So if they did this...i couldnt get the client to perform api tasks ...or could i?
the client isnt running the script...the web server is
So if they did this...i couldnt get the client to perform api tasks ...or could i?
the client isnt running the script...the web server is
A program running on the server cannot perform api tasks on the client,
unless the client is running a program which performs the api tasks for it.
unless the client is running a program which performs the api tasks for it.
I think that ozo and are saying the same thing, now. The only thing I would add to wht he is saying is that you could install a plug in or application on the client machine the first time he comments and this could do what you want. You can not do this in a transparent manner but you can certainly send him a file of an executable type that will later be used by files of a certain type sent to it. The user will be told that the file type in uinrecognized and asked what to do with it. You know the type of thing: like you get when you download something from the web.
ASKER
yeh i know...how about running a method from an activex component.
eg loading the mswinsck.ocx and making it listen.
In Visual Basic i would do it like this:
Winsock1.Listen
in a cgi script..how can i load an object and performa task with it..run a method
is it possible?
eg loading the mswinsck.ocx and making it listen.
In Visual Basic i would do it like this:
Winsock1.Listen
in a cgi script..how can i load an object and performa task with it..run a method
is it possible?
use LWP::Simple;
$rc = getstore("https://www.experts-exchange.com/Q.10242772", "localfile");
print status_message($rc) if( $rc != RC_OK );