suju Posted December 5, 2007 Share Posted December 5, 2007 Hi friends, I have to create a text file and upload this into another server specified in php script.But it is not get connecting to the server.I think the problem is with the server where I have written the script.Because when I used the same script in another server it gets connected to the specified server.Could any one tell me what might be reason for this ? I think in the server from which you are attempting to make a FTP connection,fsockopen and outgoing FTP connections might have been blocked. Regards Suju Quote Link to comment Share on other sites More sharing options...
jaymc Posted December 5, 2007 Share Posted December 5, 2007 Where both servers the same OS? Current server may not alow use of fsock Might want to check that out, I think you can do it in php maybe like if(is_function(fsockopen)) Something along those lines Quote Link to comment Share on other sites More sharing options...
aschk Posted December 5, 2007 Share Posted December 5, 2007 Firstly why are you using fsock* . You obviously haven't done your research else you would know that PHP provides some nice ftp_* functions for your use. Try google Incidently the operating system should have nothing to do with it working. You're connecting over a common protocol to a service. Quote Link to comment 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.