[PHP-DEV] Bug #10566 Updated: don't work properly fopen From: sniper <email protected>
Date: 05/01/01

ID: 10566
Updated by: sniper
Reported By: erick <email protected>
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 <email protected>
this scrip don't work properly:
(only the first time, that's ok)
<?
$file=fopen("ftp://usr:pass <email protected>/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://... <email protected>/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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>