note 22276 added to function.is-writable

From: Date: Wed, 12 Jun 2002 17:57:12 +0000
Subject: note 22276 added to function.is-writable
Groups: php.notes 
Request: Send a blank email to php-notes+get-31753@lists.php.net to get a copy of this message
in my script, i did this: while( !is_writeable( "entries.txt" ) ) { clearstatcache(); sleep( 1 ); } this worked local on my machine running winxp and apache 1.3x with php3/4 support. but on the webserver, it ran into an endless loop... the solution: while( !is_writeable( "entries.txt" ) && file_exists( "entries.txt") ) { clearstatcache(); sleep( 1 ); } michael -- http://www.php.net/manual/en/function.is-writable.php http://master.php.net/manage/user-notes.php?action=edit+22276 http://master.php.net/manage/user-notes.php?action=delete+22276 http://master.php.net/manage/user-notes.php?action=reject+22276

« previous php.notes (#31753) next »