Jump to content
Sign in to follow this  
Glyph

Keeping track of a server IP

Recommended Posts

Glyph

Is there any way i can make a variable with an html file?,

Lets say i make a text file called IP.txt on my webhosting site,

and i want it to read the file and in place of the varible make it the text in the .txt file

so i write a file "2.65.48.87" inside if the ip.txt, i want it to read the first line... and place it inside of a variable,

I'm puzzled as to what command this would be and how it works,

is it some kind of filereadline _inetget command or what?

Thank you for your time in reading this, it is being used for a file server.


tolle indicium

Share this post


Link to post
Share on other sites
Xenobiologist

Hi,

sorry could you please explain it again with other words. You ve got a webserver. You got a ip.txt on this webserver. And now you want to read the first line of it?

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
Glyph

quote isn't working sorry, But yes.. that is exactly what i mean.


tolle indicium

Share this post


Link to post
Share on other sites
Joon

From help file.

$file = FileOpen("test.txt", 0)

; Check if file opened for reading OK
If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
Else
    $line = FileReadLine($file)
    FileClose($file)
EndIf

Share this post


Link to post
Share on other sites
Glyph

From help file.

$file = FileOpen("test.txt", 0)

; Check if file opened for reading OK
If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
Else
    $line = FileReadLine($file)
    FileClose($file)
EndIf

Does that script work in a variable?, i don't think it does :/

-edit- Never mind, 'll just have them download the text file to a folder and have it read it form there :/

the goal was to read it directly form the page... but this works!

--------

Now my edit isn't working...

-------


tolle indicium

Share this post


Link to post
Share on other sites
Xenobiologist

Hi,

did you try _InetGetSource?

so long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
Glyph

YES, THat's exactly what i wanted!... wow i feel oblivious.... i didn't even see that!


tolle indicium

Share this post


Link to post
Share on other sites
Xenobiologist

Hi,

no problem. I do not know waht that is in English, but : "man sieht den Wald vor lauter Bäumen nicht"

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.