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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri May 03 13:01:32 2024 UTC