Re: PHP events, listener, trigger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2005/12/20, mamontesines <mamontesines@xxxxxxxxx>:
>   Hi,
>
>  stream/file is it the same?....the php function list dosen't have any
>  programs the clearly use the function maybe you could give me a link
>
>  $read = file( './logfile.txt' ) ;
>  if( false === stream_select( $read, $write = NULL, $except = NULL, 0 ) )
>        print "no change on file" ;
>  else
>        print "change on file is present" ;
>
>  thanks in advance,
>  Coco
>

use fopen instead of file.
$read should be an array ($read=array(&fopen('./logfile.txt'))),
$write should be an empty array ($write=array()).
So does $except.
And the last parameter should be NULL.

I think there is no code right now on internet.

Laurent.


--
«Un peu d'internationalisme éloigne de la patrie; beaucoup y ramène»
Jean Jaurès@<http://www.le-valdo.com>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux