Perhaps you will get a kick out of this: I had put the wrong file handle on a close command so the PHP file wasn't closed when Net::FTP uploaded it, and there was still a little text left in the buffer resulting in a truncated file. After the upload, PERL flushed the buffer and closed the file before shut down, so when I then uploaded the file with my FTP client it was the complete file and of course it worked.
I hate it when that happens :-)
Steve
In reply to Re^2: Net-FTP corrupting php file
by cormanaz
in thread Net-FTP corrupting php file
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |