aha ! I didn't know about the 32-bit thing
I only need to increment the last 5 or 6 digits a few time by +1 in a loop so I can maybe use substr($str,-5) then convert to an int and then, if it's not near 99999 then i can increment it a few times
thanks