PHP Code - import xml file from web server (/public_html/ctrackxml) into mysql database

前端 未结 5 1737
无人共我
无人共我 2021-01-07 02:26

I have xml files been imported onto an FTP server. This is stored in location \'/public_html/ctrackxml/\' with a random file name and in the following format:



        
5条回答
  •  爱一瞬间的悲伤
    2021-01-07 03:08

    foreach ($library->message as $mess) {                  
      printf("messageid: %s\n", $mess->messageid);                  
      printf("mobile: %s\n", $mess->mobile);
      printf("time: %s\n", $mess->time);
      printf("latitude: %s\n", $mess->latitude);
      printf("longitude: %s\n", $mess->longitude);
      printf("status: %s\n", $mess->status);
      printf("speed: %s\n", $mess->speed);
      printf("address: %s\n", $mess->address);
      printf("direction: %s\n", $mess->direction);
      printf("runningodo: %s\n", $mess->runningodo);
    }
    

提交回复
热议问题