Menu

Any example pages

2007-07-06
2013-04-22
  • javagrendel

    javagrendel - 2007-07-06

    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.

     
    • mepcotterell

      mepcotterell - 2007-08-19

      There are examples on the Project's Website, http://phparmory.sf.net/

       
      • Mr.Mitchell

        Mr.Mitchell - 2007-08-22

        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.

         
    • escaltsrs

      escaltsrs - 2007-09-24

      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("&nbsp;", "<br />\n"), $string);

      echo "\$character = ".$string;
      ?>

      its the code frome the example pages..

      i always get just the following output:

      $character = Array
      (
      )

       
    • escaltsrs

      escaltsrs - 2007-09-25

      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

      :)

       
    • escaltsrs

      escaltsrs - 2007-09-25

      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"];

      ?>

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.