Page 1 of 1

Writing a file from linux to windows

Posted: Wed Jun 27, 2007 10:33 pm
by SBro
Hey guys,

Need to be able to connect to a ms sql server from linux; done using the mssql extension

Next problem is I need to be able to write files on the windows server as well, I haven't really an idea where to start on this one? My php script is running in linux obviously, so not sure how I would use the "traditional" fwrite(), fopen() etc. Would the curl library be of any help? Thanks.

Posted: Wed Jun 27, 2007 10:35 pm
by feyd
Do the files already exist on the Linux server? FTP.

Posted: Wed Jun 27, 2007 10:38 pm
by SBro
They will, I'm going to be creating csv files that need to then goto a IP address of a windows box in certain directories. You think I will have to get the windows box set up with a ftp service?

Posted: Wed Jun 27, 2007 10:40 pm
by feyd
It's not that difficult. I've used WarFTPd in the past, with great success.

Posted: Wed Jun 27, 2007 10:42 pm
by SBro
Cheers, I'll give it a go.