Can't write to temp dir with ftp_get call..

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
tyson
Forum Newbie
Posts: 1
Joined: Thu Nov 21, 2002 5:43 am

Can't write to temp dir with ftp_get call..

Post by tyson »

Hi,

anyone know how I should specify the local temp directory in an ftp_get call so that it will write the file to the temp directory on a windows or unix based os ?

Actually while you're at it anyone know why this is failing ??:
ftp_get($ftp_conn, "c:\temp\file.txt","testfile.txt",ftp_binary);
with the informative message "error opening c:\temp\file.txt"...

thanks !

Tyson
Post Reply