[PHP] Re: Can someone explain this please...

2002-08-15 Thread Bogdan Stancescu
Hummm, sorry, you're right, you're converting it do a "fake" octal via strings, I was wrong in my first paragraph. In any case, if it helps, on my comp it really does evaluate true. Bogdan Gandalf wrote: > > > Hello! > > I am doing this > > $newpath = "./uploads/newdir/"; > if (!is_dir($ne

[PHP] Re: Can someone explain this please...

2002-08-15 Thread Bogdan Stancescu
Hi! I don't know why it doesn't because it really should ALWAYS evaluate true with your code, regardless of absolutely anything. The reason is that the quoteless 777 you're comparing to is in decimal and it would defy math if you were ever able to get $perms==777. Anyway, it does evaluate tru