Reply to Re: [PHP] unlink, symlink and caching

Your name:

Reply:


Posted by Curt Zirzow on 12/21/05 21:36

On Wed, Dec 21, 2005 at 11:27:23AM -0700, jgmtfia Mr wrote:
> I have a directory with the files:
> /config/A
> /config/B
> and
> /config/C is a symlink to /config/A.
>
> Via php I unlink /config/C:
>
> $FILE = '/config/C';
> while(file_exists($FILE)){
> unlink($FILE);
> clearstatcache();
> }
>
> When run, the first time through the loop $FILE is removed from disk
> as it should.
>
> The loop then continues forever with file_exists() returning true, but
> unlink() returns false with the error message "Warning:
> unlink(/config1/C) [function.unlink]: No such file or directory in
> /www/script.php on line 10"

This might be an issue with the OS or Filessystem. The code
works just fine for me, i dont even need the clearstatcache().


Curt.
--
cat .signature: No such file or directory

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация