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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 02:02:52 2024 UTC