欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php获取ftp xml解决办法

程序员文章站 2022-05-04 17:41:36
...
php获取ftp xml
php怎样获取ftp://175.41.22.158/a.xml里面的内容


用户名:test888
密码:test888999
------解决思路----------------------
$url = 'ftp://test888:[email protected]/a.xml';
$s = file_get_contents($url);
$xml = simplexml_load_string("$s");
print_r($xml);
SimpleXMLElement Object
(
[row] => Array
(
[0] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => BR
[billNo] => 14111905203313
[playerName] => u8889995
[agentCode] => 253001001001001
[gameCode] => GA00314B1909V
[netAmount] => 19
[betTime] => 2014-11-19 05:40:12
[gameType] => BAC
[betAmount] => 20
[validBetAmount] => 19
[flag] => 1
[playType] => 1
[currency] => CNY
[tableCode] => C3
[loginIP] => 183.94.238.85
[recalcuTime] => 2014-11-19 05:40:40
[platformType] => AGIN
[remark] =>
[round] => AGQ
[result] =>
)

)

[1] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => BR
[billNo] => 14111905203313
[playerName] => u8889995
[agentCode] => 253001001001001
[gameCode] => GA00314B1909V
[netAmount] => 19
[betTime] => 2014-11-19 05:40:12
[gameType] => BAC
[betAmount] => 20
[validBetAmount] => 19
[flag] => 1
[playType] => 1
[currency] => CNY
[tableCode] => C3
[loginIP] => 183.94.238.85
[recalcuTime] => 2014-11-19 05:40:40
[platformType] => AGIN
[remark] =>
[round] => AGQ
[result] =>
)

)

[2] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => BR
[billNo] => 14111905203313
[playerName] => u8889995
[agentCode] => 253001001001001
[gameCode] => GA00314B1909V
[netAmount] => 19
[betTime] => 2014-11-19 05:40:12
[gameType] => BAC
[betAmount] => 20
[validBetAmount] => 19
[flag] => 1
[playType] => 1
[currency] => CNY
[tableCode] => C3
[loginIP] => 183.94.238.85
[recalcuTime] => 2014-11-19 05:40:40
[platformType] => AGIN
[remark] =>
[round] => AGQ
[result] =>
)

)

[3] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => BR
[billNo] => 14111905203313
[playerName] => u8889995
[agentCode] => 253001001001001
[gameCode] => GA00314B1909V
[netAmount] => 19
[betTime] => 2014-11-19 05:40:12
[gameType] => BAC
[betAmount] => 20
[validBetAmount] => 19
[flag] => 1
[playType] => 1
[currency] => CNY
[tableCode] => C3
[loginIP] => 183.94.238.85
[recalcuTime] => 2014-11-19 05:40:40
[platformType] => AGIN
[remark] =>
[round] => AGQ
[result] =>
)

)

[4] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => BR
[billNo] => 14111905203313
[playerName] => u8889995
[agentCode] => 253001001001001
[gameCode] => GA00314B1909V
[netAmount] => 19
[betTime] => 2014-11-19 05:40:12
[gameType] => BAC
[betAmount] => 20
[validBetAmount] => 19
[flag] => 1
[playType] => 1
[currency] => CNY
[tableCode] => C3
[loginIP] => 183.94.238.85
[recalcuTime] => 2014-11-19 05:40:40
[platformType] => AGIN
[remark] =>
[round] => AGQ
[result] =>
)

)

[5] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => BR
[billNo] => 14111905203313
[playerName] => u8889995
[agentCode] => 253001001001001
[gameCode] => GA00314B1909V
[netAmount] => 19
[betTime] => 2014-11-19 05:40:12
[gameType] => BAC
[betAmount] => 20
[validBetAmount] => 19
[flag] => 1
[playType] => 1
[currency] => CNY
[tableCode] => C3
[loginIP] => 183.94.238.85
[recalcuTime] => 2014-11-19 05:40:40
[platformType] => AGIN
[remark] =>
[round] => AGQ
[result] =>
)

)

[6] => SimpleXMLElement Object
(
[@attributes] => Array
(
[dataType] => BR
[billNo] => 14111905203313
[playerName] => u8889995
[agentCode] => 253001001001001
[gameCode] => GA00314B1909V
[netAmount] => 19
[betTime] => 2014-11-19 05:40:12
[gameType] => BAC
[betAmount] => 20
[validBetAmount] => 19
[flag] => 1
[playType] => 1
[currency] => CNY
[tableCode] => C3
[loginIP] => 183.94.238.85
[recalcuTime] => 2014-11-19 05:40:40
[platformType] => AGIN
[remark] =>
[round] => AGQ
[result] =>
)

)

)

)

php获取ftp  xml解决办法

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频