maartena wrote:
Okay, no need to get pissy with me.
i very seldom get really 'pissy'... and if i do - i tend to have a reason... i am no where near 'really pissy' right now!
maartena wrote:
I actually DID read the documentation beforehand, but still could not get it to work.
reading alone gets you not far - reading and acting upon the read does the trick - or posting a question regarding a part of the docs that is not clear or needs further details!
maartena wrote:
I gave the whole world writing rights to that folder at one point but it still would not work.
OpenTTDLib Documentation wrote:
the file cache.xml needs to be located in the directory of your OpenTTDlib copy (i.e. directory where example2.php is located)
i beleive you have that just fine... as it's in that location in the released archives
OpenTTDLib Documentation wrote:
If the webserver does not have read and write access, OpenTTDLib will fail with an exception
funny that - i mention the fact that it will have an exception

if you are using any debian based system, the webserver user is www-data, and the webserver goup is www-data too. chown and chmod is your friend in that case.
maartena wrote:
I actually had to start from scratch, delete the entire folder, and extract openttdlib again etc to get it to work, and it finally did.
OpenTTDLib Documentation wrote:
If cache.xml is not present, OpenTTDLib will try to create it - giving write access to the webserver on that directory and removing cache.xml can be helpful when troubelshooting.
maartena wrote:
I read your documentation just perfectly fine. But I can see there is absolutely no room in your narrow minded view for someone who has just mediocre knowledge in the the world of Linux.
yes - blame me - the "narrow minded" one - i must surly be at fault for any problems you may experiance.
NEWSFLASH: dihedral is not responsible for your "mediocre" linux knowledge, and is also not responsible for you being unable to direct your questions to an appropriate crowed.
maartena wrote:
mediocre knowledge in the the world of Linux
thank you for underlineing what i assumed anyway. but as you clearly know this of yourself, perhaps start pocking man pages and other docs on "the linux world" which will inform you how one changes ownership and permissions of owner, group, all (and can actually explain the difference between read and write and execute and stickey, etc)
maartena wrote:
Yes I spend a lot of time reading manuals and documentation.
Yes I spent time reading yours.
Yes your comments are just plain rude and unneeded.
i find it pretty rude that you are 'bombarding me' with problems unrelated to my lib! that you are trying to tickle my pride with questioning my linux skills to get some extra help and that you seemingly incabable (please not the polite 'seemingly' - as this is leaving room for me to be at error) of directing questions to the correct forums/threads.
this thread is for OpenTTDLib and OpenTTDLib only! it is not a 'linux howto' it is not a 'php howto' or anything else!
'cannot read cache.xml' in fact may seem as a failure on my side - but is described in the docs.
OpenTTDLib Documentation wrote:
OpenTTDLib's caching support makes use of the SimpleXML object, available as of PHP 5.1.3 - If you disable the caching functionality, however, you will be able to use an earlier version of PHP5, refer to the Settings documentation, specifically the section on OpenTTDLib::OPTION_CACHE_NEWGRF.
but one thing i thank you for: you have given me reason to add a page in the docs, describing possible error messages, and which ones may be submitted as bug reports and which ones are totally uninteresting, as they are no bug or issue that arrise from my code.
i will ask the moderators to remove any further posts i find inapropriate in this thread. if need be, i shall ask them to close it, any further info will then be available on the OpenTTDLib website (
http://openttdlib.dihedral.de)
so now - let us continue and drop the previous quarrels - please only post issues that are 'directly' related to my software and are not described in the documentation. if you should have troubble, let me know 'what you have done sofar' and 'what in the docs you do not understand'.