as for the psn , you have the solution in this thread.
as for the ps3 , you might have to give some days off to your ps3 and ask for a technician to fix it ... ofc you or someone from your family has to pay him to do it... or ofc you can ask a friend to do it...