php script getting output in readable form