PHP gets FTP xml
How PHP Gets the contents of Ftp://175.41.22.158/a.xml
User name: test888
Password: test888999
------to solve the idea----------------------
$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] = =
)
)
)
)