Well i was not aware that i needed to apply for residency within the first 45 days, i never even heard of this, so is it not possible to get residency?
Not now. You have to start the process within 45 days, so you're out of time.
and i was told that they mainly give residency if you are here for a job or here for studies, but im here to try and open a business, but still i did not know this what you just said, and i also didnt know that you had to be out of the Schengen zone for 180 days before coming back for another 90, i thought you could just leave for a few days and be back, because i know a few people who have done this. so explain to me how i can make this work?
You can't make it work now, unless you gain residency in another Schengen country.
Essentially, with Schengen, you can be in the zone for a maximum of 90 days out of every 180 day period. Doesn't matter which 90 days (you can live alternate weeks in Poland and Ukraine for instance) - but you're strictly limited to 90 days stay out of every 180 day period since your first entry.
Leaving for a few days doesn't work anymore. You used to be able to simply hop across the border, but the rules changed with Schengen which makes it significantly tougher for non-EU citizens. You can try it, but you'll still be technically illegal and run the very real risk of being denied entry at the border. They check my passport thoroughly (and I'm EU) - so they're bound to check yours much much closer.
because i want to open a company, nothing big it will be bases online with popular polish websites, and my own website which is a polish one as well. so what do i need to do?
You need to sort out the residency situation first. Because you're over the 45 day limit, you won't be able to start a business - really, you should have done this when you first came to Poland. Unfortunately, you'll have to return home for 4.5 months.
Whatever you do, don't overstay.