php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9916 fopen() in w or a mode to a remote server (via HTTP)don't give back any error
Submitted: 2001-03-22 07:52 UTC Modified: 2001-04-29 10:58 UTC
From: ba1ba at yahoo dot com Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 4.0.4pl1 OS: Any
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: ba1ba at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-03-22 07:52 UTC] ba1ba at yahoo dot com
$fp = fopen("http://www.server.com/data/file.txt);
fput($string,$fp);

/* comment
data have chmod 777
file.txt have chmod 666
when you execute fput() all look ok, but when you read
file.txt nothing in.
Thanks
Bob
*/

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-29 10:58 UTC] derick@php.net
Are you trying to save a file on a remote URL with HTTP here? If that's the case, then it won't ever work. The HTTP protocol is not designed for this. Please reopen if I got this wrong.

Derick
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Feb 13 13:01:28 2025 UTC