Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-17-2008, 10:04 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Having INI file on server

If i have my test.ini file on my webserver, how do i access data inside of it ?

Ive tested few ways now but without any luck. Is it even possible ?

Or is there another way,
what im tring to do is that this ini will return a value when accessed, its supposed to check if webserver is online or offline.
so basicly if my application dosent receive anything then webserver is supposed to be offline.

Is there maybe better way ?
Reply With Quote
  #2 (permalink)  
Old 04-21-2008, 03:52 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Having INI file on server

You can try the method Inet.getUrl.
Reply With Quote
  #3 (permalink)  
Old 04-21-2008, 05:38 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Having INI file on server

Im using this example in AS2

Code:
var inet = new Inet;
function on_geturl(type, msg)
{
  Global.trace(msg);
  return type;
}

inet.getUrl("http://www.swfkit.com", "c:\\1.html");
i get the html file but i get nothing in trace

lets dump the idea of the ini...

i need a value... 1 or 0 if a website is up.... or not. Above code only saves the index file. When im looking onGetUrl in help then i see it returns eighter 1 or 0... but how ?
Reply With Quote
  #4 (permalink)  
Old 04-23-2008, 05:20 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Having INI file on server

It's unnecessary to be a ini file. It can be a text file and you use the LoadVars object to load it. If the server is ok, you can get the variable; otherwise you get an error message.
Reply With Quote
  #5 (permalink)  
Old 04-25-2008, 03:19 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Having INI file on server

ohh thanx for the idea, its even better :P
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:10 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.