Jump to content

reading uploaded files


Recommended Posts

ok i have run into a little problem. i want my programm to read a ini file that is uploaded to my site.

so i did a simple test to see if it is reading the ini file

with

$Charactername = IniRead("HTTP://******/configuration.ini", "CharName", "Name", "Notfound")
MsgBox(0, "charname", "Charname" & $Charactername)

so im guessing i cant simply put the url in the file location. can anyone help me get it to read the inifile

thankyou

Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Link to comment
Share on other sites

InetGet("http://www.URL.com/What.ini",@ScriptDir & "\What.ini")
$Charactername = IniRead(@Scriptdir & "\What.ini", "CharName", "Name", "Notfound")

If your not wanting to have the physical file on disk, there is a UDF around here on the forums for loading files from memory... Not sure if that would work on an INI like that though...

SIGNATURE_0X800007D NOT FOUND

Link to comment
Share on other sites

IniRead() is expecting the file to exist either on the local machine or on a network share.

I would use InetGet() to download the file into a local temp directory then use IniRead() from there.

[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Link to comment
Share on other sites

IniRead() is expecting the file to exist either on the local machine or on a network share.

I would use InetGet() to download the file into a local temp directory then use IniRead() from there.

tnks for both replies :D

Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...