

am an indian with indian passport, i want to go a one way trip from dubai to shanghai, from shanghai to phillipines, for example i have phillipines visit visa in my hand so i can go shanghai to phillipines no problem,my question is in shanghai my friend is working, i want to see him on the way,is it possible, when i reach shanghai airport,when i have 2 to 4hrs for my next flight, the peoples allow me to see my friend in the airport or they allow him to see me, or it is possible that if i make my flight 1day after when i arrived shanghai, can i stay 1day or 2day with him in his place, if any solution please tell me, or is there any visa they give me 2 stay for 1 or 2day when i reached there, is it possible to apply and get visa in airport for a short stay, please advice