amazon traversing in php