I am trying to send the variable charName to this page http://127.0.0.1/#/app/character?charName=Metall , as a result, a bunch of errors. The code of the file being received $charName = $_GET['charName']; (Строка 6)$xml = simplexml_load_file("http://wow-fantasy.ru/launcher/index.php?_key=ffc312f882fbeeb51504483ee8c691a2&_url=CharInfo/" + $charName); $charName = $_GET['charName']; (Строка 6)$xml = simplexml_load_file("http://wow-fantasy.ru/launcher/index.php?_key=ffc312f882fbeeb51504483ee8c691a2&_url=CharInfo/" + $charName); Connoisseurs, tell me what the problem is? PS example of one of the errors Warning: simplexml_load_file(): I/O warning : failed to load external entity "0" in Z:\home\localhost\www\templates\character.php on line 6
Update
And I attached)
$xml = simplexml_load_file("http://wow-fantasy.ru/launcher/index.php?_key=ffc312f882fbeeb51504483ee8c691a2&_url=CharInfo/" + $charName I need to take the $charName variable from the address bar, which I add to my code. I posted the error. I'm sure if you solve it, then the rest will be decided too (because I have two similar methods, but with different variables).
Update 2
These are all errors that occur.
Warning: simplexml_load_file (): I / O warning: failed to load external entity "0" in character.php on line 6
Warning: Invalid argument for foreach () in character.php on line 7
Warning: simplexml_load_file (): I / O warning: failed to load external entity "0" in character.php on line 53
Warning: Invalid argument for foreach () in character.php on line 54
The methods are identical - they differ in a couple of letters, but they carry different information. Everything works fine if I enter any name instead of a variable. but I can't take a variable
(строка 6)- Alexey Shimanskyphpthrough., but not through+....... should be, apparently. $charName. $charName- Alexey Shimansky"http://wow-fantasy.ru/launcher/index.php?_key=ffc312f882fbeeb51504483ee8c691a2&_url=CharInfo/" . $charName"http://wow-fantasy.ru/launcher/index.php?_key=ffc312f882fbeeb51504483ee8c691a2&_url=CharInfo/" . $charName? - Alexey Shimansky