VTS Posted February 7, 2007 Share Posted February 7, 2007 Well what I am trying to do is go across my network and copy a file from a mapped drive and put it on the c: drive of my server. I was told that php could not do that and I tried it with javascript, but it doesnt work right. The problem I ran into with JS was that the program that moves this file is located on a server. When a client runs this program it just puts the file on the client's computer and I need it to be placed on the C: of the server. Does anyone have any ideas for what other languages could do this or where else I can look to get help with this? If I need to be a little more clear just let me know. thanks in advance VTS Quote Link to comment https://forums.phpfreaks.com/topic/37536-getting-a-file-from-a-mapped-network-drive/ Share on other sites More sharing options...
btherl Posted February 8, 2007 Share Posted February 8, 2007 Do you want to move a file like this: mapped network drive accessible from client => C: of server This will need both client and server cooperation. PHP runs on the server only, and javascript runs on the client only. To get the file to the server, you would need javascript to submit the file to php, which would then write it to the server. I'm not sure about the details unfortunately. The easiest way is to use a standard php file upload form, and have the user select which file they want to upload. Quote Link to comment https://forums.phpfreaks.com/topic/37536-getting-a-file-from-a-mapped-network-drive/#findComment-179610 Share on other sites More sharing options...
VTS Posted February 9, 2007 Author Share Posted February 9, 2007 Thanks for the info! I actually just got this resolved today. They decided that it is possible to put the file on the c: of the server to begin with so now I do not have to worry about this. Ill have to try out what you suggested that way I am able to do that if something like this comes up in the future. thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/37536-getting-a-file-from-a-mapped-network-drive/#findComment-180919 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.