Glyph Posted December 8, 2006 Share Posted December 8, 2006 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 Link to comment Share on other sites More sharing options...
Xenobiologist Posted December 8, 2006 Share Posted December 8, 2006 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 Link to comment Share on other sites More sharing options...
Glyph Posted December 8, 2006 Author Share Posted December 8, 2006 quote isn't working sorry, But yes.. that is exactly what i mean. tolle indicium Link to comment Share on other sites More sharing options...
Joon Posted December 8, 2006 Share Posted December 8, 2006 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 Link to comment Share on other sites More sharing options...
Glyph Posted December 8, 2006 Author Share Posted December 8, 2006 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 Link to comment Share on other sites More sharing options...
Xenobiologist Posted December 8, 2006 Share Posted December 8, 2006 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 Link to comment Share on other sites More sharing options...
Glyph Posted December 8, 2006 Author Share Posted December 8, 2006 YES, THat's exactly what i wanted!... wow i feel oblivious.... i didn't even see that! tolle indicium Link to comment Share on other sites More sharing options...
Xenobiologist Posted December 9, 2006 Share Posted December 9, 2006 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now