Unable to open local roster file.

Questions and discussions on development tools for WarcraftRealms
Post Reply
Aibo
Posts: 9
Joined: Thu May 05, 2005 4:30 pm

Unable to open local roster file.

Post by Aibo »

Hi. I got a new host and now it works: http://dun-morogh.gigapage.net/census/census.php
But if I try to include it there is: Unable to open local roster file.

I just include it with http://dun-morogh.gigapage.net/?content=census/census

A script adds the .php.

Whats my fault? Hope anyone can help.

Aibo

User avatar
Rollie
Site Admin
Posts: 4783
Joined: Sun Nov 28, 2004 11:52 am
Location: Austin, TX
Contact:

Post by Rollie »

Without knowing more details, I can't really tell. It is possible that it has to do with your directory structure though. If your

http://dun-morogh.gigapage.net/?content=census/census

is looking for the local roster file in the root directory but the local file is actually in the /census/ directory, then that could be your problem. Just guesses here though as I have no idea what your setup is or any of the code behind.
phpbb:phpinfo()

Aibo
Posts: 9
Joined: Thu May 05, 2005 4:30 pm

Post by Aibo »

I copy the code u postet here. Just change the Serverdatafile.

The structure is: index.php in no folder, just on ftp. And census in the census folder.

User avatar
Rollie
Site Admin
Posts: 4783
Joined: Sun Nov 28, 2004 11:52 am
Location: Austin, TX
Contact:

Post by Rollie »

If such is the case, then it could very well be that it is looking for the local roster file in the root directory. Either hav it look for it in the /census directory or move the file and to the root directory and change the code to write it there.
phpbb:phpinfo()

Aibo
Posts: 9
Joined: Thu May 05, 2005 4:30 pm

Post by Aibo »

Ok it works now. Thanks a lot.

Aibo
Posts: 9
Joined: Thu May 05, 2005 4:30 pm

Post by Aibo »

Ok i got another problen.
Heres the page atm: http://dun-morogh.gigapage.net/index.ph ... sus/census

But the content of kgroster is still the file i downloaded here. I change the code to census/kgroster everywhere but it's still not working.

I uploadet the hole code in a .txt file here http://people.freenet.de/goplay/code.txt

Hope anyone see my fault.

User avatar
Rollie
Site Admin
Posts: 4783
Joined: Sun Nov 28, 2004 11:52 am
Location: Austin, TX
Contact:

Post by Rollie »

What realm are you wanting to load data for?

If you are trying to load a different realm than Dun Morough, then you need to change this line:

$filename = "http://www.warcraftrealms.com/exports/d ... ame=EU-Dun Morogh.csv.gz";

to fetch the realm you are looking for.
phpbb:phpinfo()

Aibo
Posts: 9
Joined: Thu May 05, 2005 4:30 pm

Post by Aibo »

I already change $filename = "http://www.warcraftrealms.com/exports/d ... oth.csv.gz"; to
$filename = "http://www.warcraftrealms.com/exports/d ... ame=EU-Dun Morogh.csv.gz";

Dun Morogh is the server i want to show. But the data in kgroster is still form Khaz'goroth

User avatar
Rollie
Site Admin
Posts: 4783
Joined: Sun Nov 28, 2004 11:52 am
Location: Austin, TX
Contact:

Post by Rollie »

Well, your local file, located here:

http://dun-morogh.gigapage.net/census/kgroster.csv

is still data for Khaz'Goroth. Which means you have never downloaded a new KG file.

When I look at your status file at:

http://dun-morogh.gigapage.net/census/status.txt

I notice that the value there is way too big. Try setting the value to 0 and then load the page and see what happens.
phpbb:phpinfo()

Aibo
Posts: 9
Joined: Thu May 05, 2005 4:30 pm

Post by Aibo »

Which value do u mean?
The status.txt? I set it to 0 but no change.

Aibo
Posts: 9
Joined: Thu May 05, 2005 4:30 pm

Post by Aibo »

No idea?

User avatar
Rollie
Site Admin
Posts: 4783
Joined: Sun Nov 28, 2004 11:52 am
Location: Austin, TX
Contact:

Post by Rollie »

phpbb:phpinfo()

Aibo
Posts: 9
Joined: Thu May 05, 2005 4:30 pm

Post by Aibo »

It updated the status.txt with the new file form here.

I changed status.txt to 0 but its up to date with every connect i think.

User avatar
Rollie
Site Admin
Posts: 4783
Joined: Sun Nov 28, 2004 11:52 am
Location: Austin, TX
Contact:

Post by Rollie »

email me your script file

rollie@warcraftrealms.com
phpbb:phpinfo()

Post Reply