On Mon, January 21, 2008 7:23 pm, shiplu wrote: > I configured autofs in my fedora so that when I plug any usb stick in > /dev/sda1 it automatically mounts in /mnt/auto/usb0 > > There is two lines where the problem arise. > > $util->run_command("ls -1 /mnt/auto/usb0 | wc -l"); // it shows 13 > when I > plug my usb stick. Perhaps do a flush of the file system cache here... http://php.net/clearstatcache Not sure why it would have been loaded in the first place, but that may be it. > $list = scandir("/mnt/auto/usb0 "); // here $list is null -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php