Bug #3916: Opening file with fopen($url,"w") fails if file exists

From: Date: Fri, 24 Mar 2000 13:40:06 +0000
Subject: Bug #3916: Opening file with fopen($url,"w") fails if file exists
Groups: php.dev 
Request: Send a blank email to php-dev+get-17198@lists.php.net to get a copy of this message
From: sniper@iki.fi Operating system: Red Hat Linux 6.1 PHP version: 3.0 Latest CVS (24/03/2000) PHP Bug Type: Parser error Bug description: Opening file with fopen($url,"w") fails if file exists This works, if file exists: $fp=fopen("file.txt", "w"); This doesn't work if file exists (if file doesn't exist, it works!): $fp=fopen("ftp://username:password@domain.fi/file.txt", "w"); The error message: Warning: File already exists in /www/htdocs/test.phtml on line 1

« previous php.dev (#17198) next »