php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8135 FTP_FPUT can't use a HTTP Filepointer
Submitted: 2000-12-06 10:43 UTC Modified: 2001-07-17 01:52 UTC
From: nico at systemconcept dot de Assigned: jason (profile)
Status: Closed Package: FTP related
PHP Version: 4.0.3pl1 OS: Linux 7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nico at systemconcept dot de
New email:
PHP Version: OS:

 

 [2000-12-06 10:43 UTC] nico at systemconcept dot de
for example :

$fp = fopen("http://www.php.net", "r");

ftp_fput( $ftp_stream, "remote", $fp, FTP_ASCII);

doesn't work.

But the following code-example :

$fp = fopen("file.txt", "r");

ftp_fput( $ftp_stream, "remote", $fp, FTP_ASCII);

works.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-07 00:21 UTC] jason@php.net
HTTP fopens are read only.

-Jason
 [2001-07-08 18:46 UTC] sniper@php.net
The idea here is to be able to read from the fopen()'ed 
stream and ftp_fput() the data.. not the other way around.

(Jason, READ the bug reports before closing them, also RTFM)

--Jani

 [2001-07-09 12:37 UTC] jason@php.net
Sorry nico, I misread the ticket, 

The problem is that the ftp extension hasn't been updated to support socket based file descriptors.

I will take a look at a fix for this.

-Jason

 [2001-07-17 01:52 UTC] jason@php.net
Feature added in CVS

-Jason
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC