php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16505 fopen does not overwrite files opened via FTP ...
Submitted: 2002-04-09 03:17 UTC Modified: 2002-04-09 13:59 UTC
From: daltonhunter at iname dot com Assigned:
Status: Closed Package: FTP related
PHP Version: 4.1.1 OS: Redhat 6.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: daltonhunter at iname dot com
New email:
PHP Version: OS:

 

 [2002-04-09 03:17 UTC] daltonhunter at iname dot com
If I try to use fopen to overwrite a file via FTP ...

fopen("ftp://username:password@www.domain.com/system/path/to/file.txt", "w")

... I get a "Warning: File already exists" error and it fails. Is'nt it supposed to overwrite it?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-09 04:13 UTC] sander@php.net
Dupe of #?????
 [2002-04-09 04:55 UTC] wez@php.net
This is intended behaviour.  Read the section of the manual
entitled: Features: Using Remote Files.
 [2002-04-09 05:01 UTC] wez@php.net
As an additional note, I'd suggest using the ftp extension
if you need more control over ftp resources.
 [2002-04-09 13:59 UTC] daltonhunter at iname dot com
Sorry, missed that note. Maybe this could be added to the fopen manual page.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC