open All Channels
seplocked EVE Technology Lab
blankseplocked API display help
This thread is older than 90 days and has been locked due to inactivity.

Author Topic

Posted - 2007.12.18 01:27:00 - [1]

My host is using PHP 5.1.6

I'd like a single PHP file that pulls all data about my character
(IE: No seperate modules) and puts it into an Array like Attribute 1,
Attribute 2, ect. That way, I can have it print out only the attributes
I want at any given time.

Anyone familiar with how to Code this?

Eddie Knight
Caldari Provisions
Posted - 2007.12.18 07:58:00 - [2]


I can't give you any code since what I've made is a big mess and you'd spend more time trying to understand it then writing it from scratch.

You should look at the following:
SimpleXML or DOM

My code usually does the following:

1. Check if you have the XML
1a. If you have the XML, check if it's expired
1aa. If it's expired get the XML off the server
1ab. If it's still valid stop the update since it's not needed
1b. If you don't have the XML, get it off the server

Note: cURL is used to get the XML, SimpleXML/DOM is used to read it.

2. Read the XML and get the data you want
2a. Save the data in a database or create/update a text file
2aa. Create the array you need from the database/text file, or just include the php file (see the note) and use it.

Note: What I did for the map script I made was to write a PHP file that contained a multi-level array with all the data, built in such a way that it would be easy to use it later.

Good luck.


This thread is older than 90 days and has been locked due to inactivity.


The new forums are live

Please adjust your bookmarks to

These forums are archived and read-only