Binary file upload with ftp
| From: | Andy Pieters | Date: | Tue, 27 Sep 2005 18:24:35 +0000 |
| Subject: | Binary file upload with ftp | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223300@lists.php.net to get a copy of this message | ||
Hi all
Is there someone with expierence on how to upload a binary file in php?
I am using php 5 cli engine and the scripts keeps trowing errors, but only if
the file is a binary. Text files upload without problem.
It keeps telling me 'STOR' not understood.
I tried putting in passiv mode and I verified to use the FTP_BINARY constant
directly on the command... like this
$result=ftp_put($handle,$localfile,$remotefile,FTP_BINARY);
But to no aval!
Somebody know what to do?
With kind regards
Andy
--
Registered Linux User Number 379093
Now listening to Radio Stream
amaroK::the Coolest Media Player in the known Universe!
Cockroaches and socialites are the only things that can
stay up all night and eat anything.
Herb Caen
--
-- --BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++
L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e>++++$@ h++(*) r-->++ y--()>++++
-- ---END GEEK CODE BLOCK------
--
Check out these few php utilities that I released
under the GPL2 and that are meant for use with a
php cli binary:
http://www.vlaamse-kern.com/sas/
--
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]