Detecting sharing violations

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
CentaurxPRC
Forum Newbie
Posts: 1
Joined: Mon Sep 14, 2009 5:01 am

Detecting sharing violations

Post by CentaurxPRC »

HI. I am using mount.cifs under linux to mount a share on XP. I am then recursively descending that share looking at each file as I go. This is using readdir() and when all the files have been read it returns false. Sometimes I get errors and having used wireshark to trace what is happening I see there is a sharing violation being reported but this does not get reported back to PHP other than a "false" which is of course identical to that returned when gettinging to the end of a readdir list. Does anyone know how I can detect errors more reliably so I can respond differently to a share violation problem? Thanks
Post Reply