Thank you for your query.
can be very troublesome and take some time to be controlled. You mentioned that your child passes stool every 2-4 days and it "rips her on the way". I suggest that you get her anal canal
examined to rule out any anal fissure
which can be very painful and can be a reason why she does not want to pass motion daily thereby aggravating her constipation.
Discuss with your doctor and start a two pronged management:
1. Help your daughter clear the hard stools by giving appropriate rectal suppositories
2. Continue with diet modifications till her stools become normal. Help of laxatives may have to be taken but that should be only temporarily so that she does not develop a habit for it.
I hope I have responded to your query to your satisfaction.
Wishing your daughter an early recovery.