Source: LOTF v2
Need Help With:
Since the database is being read from a .ini, I was hoping I could make it read the .ini from a website (e.g. localhost/co/servername/config.ini (I know localhost isn't a good example)).
I have no idea how to make this, I know this seems kinda useless, but there is a reason I'm using for something, which I is private for now. I think I will release it after finishing it 100%.
Bit of a backwards solution. Ideally you should create an Ini reading class which takes a System.IO.Stream argument rather then using those unmanaged imports. The GetPrivateProfileString etc are really Windows Registry functions, but luckily compatible with COs ini files.
There are already some other managed Ini reading libraries that will take a stream. Quick google search should find one. Using a managed ini reader has plenty of advantages, such as exception handling, where you can actually see what a problem is, rather then obtaining a "0" meaning error, with no explanation.
If you do grab one, you could use a HttpWebRequest and HttpWebResponse to collect the file, use response.GetStream() to get a stream you can pass to the ini reader. This also has the advantage that you can do it asynchronously.
Kinshi's solution was fine, I've got it working, it just takes some time to load the ini, but that doesn't matter since I never use it myself, it's a security thing.
Erstelle eure WebSite / Create your Website 10/20/2010 - elite*gold Trading - 39 Replies Hallo Community,
Aktuelle Treasures
No permission - GEKAUFT
No permission - OFFEN
Da ich genügend Zeit habe, und neben nach neuen Herrausforderungen suche, bietet ich ab heute meinen Website Service an.
READ READ READ !!! LORDYK93 SCAMMER 10/11/2009 - Silkroad Online Trading - 1 Replies he scammed a ecsro vip account from me ... he wanna give a lvl 90 sjsro account he change the pw of my account and said i have to wait ... now hes on at epvpers and on in msn but he didnt answer me anymore
if you answer me and give me my vip account back i will delete this.!
[request] website coding help Read! 02/12/2009 - CO2 Private Server - 20 Replies heey I have an question can somone make an config and reg page for TQ binarys in html coding becouse the .php is released already.
if somone can help me add me on msn or leave an replay
my mail is [email protected]