Bug #10566 Updated: don't work properly fopen

From: Date: Tue, 01 May 2001 06:02:46 +0000
Subject: Bug #10566 Updated: don't work properly fopen
Groups: php.dev 
Request: Send a blank email to php-dev+get-53160@lists.php.net to get a copy of this message
ID: 10566 Updated by: sniper Reported By: erick@citmatel.inf.cu Old-Status: Open Status: Analyzed Bug Type: Filesystem function related PHP Version: 4.0.4pl1 Assigned To: Comments: I can reproduce this on Linux too. If file exists in ftp, you can not overwrite it or add to it. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-04-30 17:11:25] erick@citmatel.inf.cu this scrip don't work properly: (only the first time, that's ok) <? $file=fopen("ftp://usr:pass@localhost/administrador/servicios5.inc","w"); fputs($file,"Algo"); fclose($file); ?> this the warning: Warning: File already exists in generaservicios.inc on line 1 Warning: fopen("ftp://...@localhost/administrador/servicios5.inc","w") - File exists in generaservicios.inc on line 1 Warning: Supplied argument is not a valid File-Handle resource in generaservicios.inc on line 2 Warning: Supplied argument is not a valid File-Handle resource in generaservicios.inc on line 97 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10566&edit=2

« previous php.dev (#53160) next »