Don’t confuse `how ever’ with `however’. `How ever’ occurs mostly in questions. The word `ever’ is used to give emphasis to various expressions. It is used to indicate surprise, admiration, anger, etc.
*How ever did you manage to get the tickets for the movie?
The word `ever’ is used to add emphasis to the question. Notice that even without the word `ever’, the questions would be grammatically correct. According to some scholars, `how ever’ in these questions has the same meaning as “how on earth”. “How on earth did you get a job as teacher?”