Page 1 of 1

problem in auto FTP made in cgi script

Posted: Mon Mar 31, 2003 1:59 am
by sujata ghosh
Hi to all!

i need help on auto Ftp programme. i got a ftp code. i want to implement it according to my requirement.

let me explain what i want to do:
- i want to upload two gif files with different name from my hard disk to a fidex directory on my webserver twice a day. (right now i do this job manually). file name look like fdwam(currentdate).gif and fwdpm(currentdate).gif

- i use a form(cgi form) to send mail, i want ti include that ftp coding into that mail form so that when ever i send mail that fixed gif file will uploaded to the fixed directory.

- i don't want to chose the file everytime, which we generally do on the time of ftp. i want to avoide the step of chose file and upload file steps, too.

but the problem is, i can't understand how i will pass the filename and upload file command together.

i need help very badly on this issue.

any help and suggesstion will be appreciated.

thanks.