ochi Posted February 8, 2010 Share Posted February 8, 2010 hello! I'll try to explain my problem, but it's a bit complicated. I have a server conecting 2 nets with a tunnel, one is private, I can't access it without the tunnel, and the other is the internet. So, I have my php code in the server. I want to download files from the private network, but not to the local computer I use to connect to the system, I want this files in the server. Can i do this? Please, if you dont understand me, tell me how to attach a image and i'll try again with it. Thanks! Link to comment https://forums.phpfreaks.com/topic/191322-download-files-to-the-server/ Share on other sites More sharing options...
jl5501 Posted February 8, 2010 Share Posted February 8, 2010 if you have an ftp connection that you can use through the tunnel, then you can use php to setup that ftp connection and transfer the files. Link to comment https://forums.phpfreaks.com/topic/191322-download-files-to-the-server/#findComment-1008722 Share on other sites More sharing options...
ochi Posted February 8, 2010 Author Share Posted February 8, 2010 Hi! I'm afraid I dont understand you. Should I open the ftp conection from the computer in the private network? I cant modify anything in this situation. This is a create web site. Could I detect with javascript the end of the transfer to the computer I'm using and then open the ftp conection to the server? Thanks! Link to comment https://forums.phpfreaks.com/topic/191322-download-files-to-the-server/#findComment-1008794 Share on other sites More sharing options...
jl5501 Posted February 8, 2010 Share Posted February 8, 2010 Assuming you have normal access to upload your code to the webserver then you can drive everythng from there. You would open up the ftp connection to the private server and transfer the files to the webserver using ftp controlled by your php script Link to comment https://forums.phpfreaks.com/topic/191322-download-files-to-the-server/#findComment-1008815 Share on other sites More sharing options...
jl5501 Posted February 8, 2010 Share Posted February 8, 2010 regarding using php to run your ftp connection to the private server, you would start here: http://www.php.net/manual/en/function.ftp-connect.php Link to comment https://forums.phpfreaks.com/topic/191322-download-files-to-the-server/#findComment-1008816 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.