Writing a file from linux to windows

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SBro
Forum Commoner
Posts: 98
Joined: Tue Sep 30, 2003 10:06 pm

Writing a file from linux to windows

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Do the files already exist on the Linux server? FTP.
SBro
Forum Commoner
Posts: 98
Joined: Tue Sep 30, 2003 10:06 pm

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It's not that difficult. I've used WarFTPd in the past, with great success.
SBro
Forum Commoner
Posts: 98
Joined: Tue Sep 30, 2003 10:06 pm

Post by SBro »

Cheers, I'll give it a go.
Post Reply