Page 1 of 1

Unable to open local roster file.

Posted: Mon May 23, 2005 6:46 am
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

Posted: Mon May 23, 2005 9:56 am
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.

Posted: Mon May 23, 2005 11:03 am
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.

Posted: Mon May 23, 2005 11:45 am
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.

Posted: Mon May 23, 2005 2:53 pm
by Aibo
Ok it works now. Thanks a lot.

Posted: Thu May 26, 2005 12:23 pm
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.

Posted: Thu May 26, 2005 1:05 pm
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.

Posted: Thu May 26, 2005 1:08 pm
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

Posted: Thu May 26, 2005 1:31 pm
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.

Posted: Thu May 26, 2005 2:38 pm
by Aibo
Which value do u mean?
The status.txt? I set it to 0 but no change.

Posted: Sun May 29, 2005 4:27 am
by Aibo
No idea?

Posted: Sun May 29, 2005 10:20 am
by Rollie

Posted: Sun May 29, 2005 10:46 am
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.

Posted: Sun May 29, 2005 1:41 pm
by Rollie
email me your script file

rollie@warcraftrealms.com