Re: Problem with FTP and fopen
| From: | Adam Voigt | Date: | Tue, 11 Feb 2003 15:15:33 +0000 |
| Subject: | Re: Problem with FTP and fopen | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135194@lists.php.net to get a copy of this message | ||
I don't think PHP checks to see what FTPD your running, it's probably a
bug
in PureFTPD as opposed to PHP (since it works in WU).
On Tue, 2003-02-11 at 10:10, Chris Boget wrote:
OK, I used the php ftp_put function successfully to upload a file.
But
this is not what I need. I need to use the ftp_fput function to
transfer
from a file pointer. This function failed to transfer the file with
Pureftp server but transfers successfully using Wu-ftp. Any ideas on
why
Pureftp is failing to trasfer from a file point? I don't understand
why
it would even know the difference. Possible a bug in PHP?
On Mon, 2003-02-10 at 13:30, Craig Jackson wrote:
> Anyone have any idea why this script cause a file to be created
without
> the contents?
>
> <script language="php">
> set_time_limit(1200);
> $filename = "testthis";
> $fp =
fopen("ftp://user:pass@server/outbound/devel/$filename",
> "w");
> $tran_info = sprintf( "%-10s\n","testthis");
> echo "$tran_info";
> fputs($fp, $tran_info );
> fclose($fp);
> </script>
>
> Using the latest version of pure-ftpd from source on Linux.
> --
>
> Craig Jackson
> __________________________
> Wildnet Group LLC
> 103 North Park, Suite 110
> Covington, Lousiana 70433
> Office 985-875-9453
> __________________________
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: list-unsubscribe@pureftpd.org
> For additional commands, e-mail: list-help@pureftpd.org
--
Craig Jackson
__________________________
Wildnet Group LLC
103 North Park, Suite 110
Covington, Lousiana 70433
Office 985-875-9453
__________________________
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc