LanceT Posted February 7, 2011 Share Posted February 7, 2011 I have a script that uploads my file, but this script requires apache. I want to get this file onto my other server that's running nginx. Is there a way for PHP to write a file to nginx? Alternatively, is there a way for PHP to copy a file from one server to another? Because that will work as well. How do I do this? Quote Link to comment https://forums.phpfreaks.com/topic/226943-is-there-a-way-for-php-to-upload-a-file-to-another-server/ Share on other sites More sharing options...
beegro Posted February 7, 2011 Share Posted February 7, 2011 You can move files between servers but they need to be connected somehow (i.e. networked, shared volume, etc) THEN the way in which they are connected will determine how you can move the files. Quote Link to comment https://forums.phpfreaks.com/topic/226943-is-there-a-way-for-php-to-upload-a-file-to-another-server/#findComment-1170980 Share on other sites More sharing options...
floridaflatlander Posted February 7, 2011 Share Posted February 7, 2011 Basicly for the laymen, if the other server requires "localhost" for the Database on that server the answers is no. If there is another name besides "localhost" like coustomer_..._...._...company_com you may be able to. Quote Link to comment https://forums.phpfreaks.com/topic/226943-is-there-a-way-for-php-to-upload-a-file-to-another-server/#findComment-1170984 Share on other sites More sharing options...
Pikachu2000 Posted February 7, 2011 Share Posted February 7, 2011 How you connect to the database really has nothing to do with how files can be transferred. Quote Link to comment https://forums.phpfreaks.com/topic/226943-is-there-a-way-for-php-to-upload-a-file-to-another-server/#findComment-1171029 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.