I'm working on our guilds website, but I haven't used php before. I'm a java developer by day, so I'm really hoping it won't take me long to get something built. Examples would be a nice place to start :)
And, by the way, is anybody else interested in a mailing list for this project? AFAIK, there isn't one at the moment.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Actually all examples on the news page point to the "Getting the latest source" page (http://phparmory.sourceforge.net/?q=node/6). The actual examples can be found in the Functions category under Documentation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
can anyone say what im doing wrong with this code?..
<?php
include("phpArmory.class.php");
$armory = new phpArmory();
$character = $armory->characterFetch("Phattangent", "Kul Tiras"); // returns an associative array of character info to $character
Here is an example to display the level of a character... ;)
<?php
include("phpArmory.class.php");
$armory = new phpArmory();
$character = $armory->characterFetch("Phattangent", "Kul Tiras"); // returns an associative array of character info to $character
Anybody have any example pages I could check out?
I'm working on our guilds website, but I haven't used php before. I'm a java developer by day, so I'm really hoping it won't take me long to get something built. Examples would be a nice place to start :)
And, by the way, is anybody else interested in a mailing list for this project? AFAIK, there isn't one at the moment.
There are examples on the Project's Website, http://phparmory.sf.net/
Actually all examples on the news page point to the "Getting the latest source" page (http://phparmory.sourceforge.net/?q=node/6). The actual examples can be found in the Functions category under Documentation.
can anyone say what im doing wrong with this code?..
<?php
include("phpArmory.class.php");
$armory = new phpArmory();
$character = $armory->characterFetch("Phattangent", "Kul Tiras"); // returns an associative array of character info to $character
$string = print_r($character, 1);
$string = str_replace(array(" ", "\n"), array(" ", "<br />\n"), $string);
echo "\$character = ".$string;
?>
its the code frome the example pages..
i always get just the following output:
$character = Array
(
)
ok, my problem was another one... my webserver got no "curl" and specialy no "php5-curl"..
if someone have the same problem, that no data exist in the array, make sure these two things are installed on your server...
for debian based server just typ:
apt-get install curl
apt-get install php5-curl
:)
Here is an example to display the level of a character... ;)
<?php
include("phpArmory.class.php");
$armory = new phpArmory();
$character = $armory->characterFetch("Phattangent", "Kul Tiras"); // returns an associative array of character info to $character
echo $character["characterinfo"]["character"]["attributes"]["level"];
?>