On 15 January 2004 21:03, Jay Blanchard wrote: > [snip] > That shouldnt matter, because FTP_BINARY is a constant, and > therfore has > a > numeric, or string value. The only way FTP_BINARY would become a > physical string is if there was quotes around it. > > As for the problem, are you sure you have the right connection open, > because the error (STOR not understood) sounds like you mat not have > connected to a valid FTP server? possibly or permissions? > [/snip] > > If you put quotes around "FTP_BINARY" in the function like this .... > > ftp_put($conn_ftp,$picuploadname ,$piclocalname , "FTP_BINARY"); > > ...it will fail. The expected behaviour is that ftp_put will silently > default to ASCII mode. The same happens if you put FTP_BINARY in a > variable. I have confirmed this in 4.3.n
If that really happens, then it's a bug! But I don't believe it. What does <?php $bin = FTP_BINARY; var_dump($bin); ?> produce for you? It should be "int(1)", and using that in the ftp_put call should be just fine. If you get something else, or you get that and the ftp_put fails using $bin, then something is very screwy indeed. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php