NLCGraphics Posted July 21, 2009 Share Posted July 21, 2009 Hi guys, I'm trying to write a file to a seperate server using: $file= fopen("\\serverName\firstFolder\secondFolder\fileName.xml", "w"); but it will not write to that file, any idea why? I can write to a file in the same folder as the php file but not on another server. The server I'm writing to doesn't have PHP or APACHE installed, should that matter, if I'm writing to the file from a server that does have those programs installed? thanks, Link to comment https://forums.phpfreaks.com/topic/166860-cant-write-file-to-server-should-be-simple/ Share on other sites More sharing options...
celsoendo Posted July 22, 2009 Share Posted July 22, 2009 Maybe the directory you are trying to write doesn't have permissions to write. Link to comment https://forums.phpfreaks.com/topic/166860-cant-write-file-to-server-should-be-simple/#findComment-879981 Share on other sites More sharing options...
kenrbnsn Posted July 22, 2009 Share Posted July 22, 2009 Is the folder you're attempting to write to accessible from the server where PHP is running? Ken Link to comment https://forums.phpfreaks.com/topic/166860-cant-write-file-to-server-should-be-simple/#findComment-879995 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.