straygrey Posted April 22, 2011 Share Posted April 22, 2011 My user needs me to update the database on their server from data contained in a text file but do not want me to upload the text file to the server but rather read the file from wherever it exists. Across the intranet. Uploading the file means that whomsoever needs to do this update requires write permission to a folder on the server & my user does not want that. Suggestions on how I should solve this problem would be greatly appreciated. BTW My code works fine if I upload the file and do the update in place on the server. Quote Link to comment https://forums.phpfreaks.com/topic/234434-reading-text-file-across-network/ Share on other sites More sharing options...
fugix Posted April 22, 2011 Share Posted April 22, 2011 first thing that comes to my mind is use FTP but that of course requires you having his password and username...I will look into it Quote Link to comment https://forums.phpfreaks.com/topic/234434-reading-text-file-across-network/#findComment-1204853 Share on other sites More sharing options...
spiderwell Posted April 22, 2011 Share Posted April 22, 2011 if the text file is on a webserver, it could be fetched and read in php using file_get_contents() Quote Link to comment https://forums.phpfreaks.com/topic/234434-reading-text-file-across-network/#findComment-1204896 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.