how to read xml file from url using php

后端 未结 5 1117
广开言路
广开言路 2020-12-03 07:02

I have to read an XML file from an URL

$map_url = \"http://maps.google.com/maps/api/directions/xml?origin=\".$merchant_address_url.\"&destination=\".$cus         


        
5条回答
  •  情话喂你
    2020-12-03 07:34

    It is working for me. I think you probably need to use urlencode() on each of the components of $map_url.

提交回复
热议问题