Nothing is happening because you entire statement is evaluating as false therefore skipping the increment function.
strpost is returning
false because it cannot find the '/'
then you are see if it does
not equal false which is returns
false because the result from the strpost
is in fact false.
So basically when strpos has done its work you the if function looks like this:
PHP Code:
if(FALSE !== FALSE)
//increment
I hope you see what I mean you problem is here if( strpos( $stats[1], '/' )
!== false ) it should be: if( strpos( $stats[1], '/' )
=== false ) I believe.
Edit:
Thanks Nigel, just skipped my mind (getting a little late) edited code