(Courriels de diversion: <choisissaient@stylises-enrouleront.com> <redonneront@reaffirmerez-redoutiez.com> <temperera@nationaliserais-integrerai.com> <dedramatisee@habilita-epiphyses.com> <mongol@torpillez-interiorisait.com> <pinedes@montagnards-reeditant.com> <accomplirions@agonise-slow.com> <egratignent@protêt-carbonater.com> <garderies@meli-melo-deliberation.com> <vite@niches-contre-projets.com> )


Le 18 Avr, Pierre Estrem écrit :

> 	Je rencontre un truc bizarrus.
> Sous suse 6.0 et Apache, je démarre en tâche de fond un script PHP3, du
> genre:
> TANT QUE fichier 'bidon' existe
> FAIRE
> 	incrémenter $count
> 	écrire $count dans fichier 'z'
> 	sleep (1s)
> FIN TANT QUE
> Lorsque je fais des 'cat z', je constate bien que le compteur est
> incrémenté.
> Mais quand je joue du 'rm bidon', ça se gâte.
> Le processus diabolique se poursuit.

zapata$ lynx /usr/doc/php3-doc/html/function.file-exists.html

                                  file_exists

   file_exists -- Check whether a file exists.

Description

   int file_exists(string filename);

   Returns true if the file specified by filename exists; false
   otherwise.

   See also clearstatcache().
   ^^^^^^^^^^^^^^^^^^^^^^^^^^


zapata$ lynx /usr/doc/php3-doc/html/function.clearstatcache.html

                                clearstatcache

   clearstatcache -- clear file stat cache

Description

   void clearstatcache(void);

   Invoking the stat() system call on most systems is quite expensive.
   Therefore, the result of the last call to any of the status functions
   (listed below) is stored for use on the next such call using the same
   filename. If you wish to force a new status check, for instance if the
   file is being checked many times and may change or disappear, use this
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   function to clear the results of the last call from memory.

   Affected functions include stat(), file_exists(), filectime(),
   fileatime(), fileinode(), filegroup(), fileowner(), filesize(),
   filetype(), and fileperms().


-- 
Marc Thirion              | Toulouse, France
Un Travail pour Chacun    : http://www.multimania.com/untravailchacun/
Marc.Thirion@ISOscope.com : http://www.ISOscope.com/Pérennité des logiciels et des systèmes



---------------------------------------------------------------------
Aide sur la liste: <URL:mailto:linux-31-help@savage.iut-blagnac.fr>Le CULTe sur le web: <URL:http://savage.iut-blagnac.fr/>