onestcoder Posted January 24, 2007 Share Posted January 24, 2007 I have seen talk about the ablilty to write to a txt file on the net. I have been tring to do this, but I have not luck. I have a text file on my website and the permission is set to 777. I'm tring to use: filewrite("www.mywbsite.com/textfile.txt", "Test") can some point me in the right direction, please. Need a website: http://www.iconixmarketing.com Link to comment Share on other sites More sharing options...
Zedna Posted January 24, 2007 Share Posted January 24, 2007 Look at WinINet Functions:here at MSDNThere is function InternetWriteFile Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
onestcoder Posted January 24, 2007 Author Share Posted January 24, 2007 (edited) I'm not sure how to get WinINet Functions to work in autoit.in the script XProTec.au3 that Valuater (awesome btw)http://www.autoitscript.com/forum/index.ph...hl=30+day+trialI'm guess i'm tring to do something similar to his Blacklist.txt write. Edited January 24, 2007 by onestcoder Need a website: http://www.iconixmarketing.com Link to comment Share on other sites More sharing options...
luvmachine Posted January 24, 2007 Share Posted January 24, 2007 (edited) There has to be a simpler way, but you can always dl the file to a temp location, add to it, and ftp it back up with the ftp functions :| But if you have permission set to global then I don't see why there shouldn't be an easier way to treat it as a file on your own computer. Btw, though I stopped playing FFXI great site EDIT: I went to the MSDN website and checked it out, looks like to be able to use the InternetWriteFile you're already having to open an FTP session with the server, using an FTP call to get some more info about the file, then you can write, then you have to close the Inet session. However to even do all this the server has to be running Windows Otherwise, you can continue to check it out there, but all the functions you need to use are in Wininet.dll Edited January 24, 2007 by luvmachine Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 24, 2007 Moderators Share Posted January 24, 2007 I was led by your request in your other thread about XProtect. I'd agree with luvmachine, I would imagine you needing FTP permissions to do what you want, otherwise any Joe Blow could write to your site. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Valuater Posted January 24, 2007 Share Posted January 24, 2007 (edited) XProTec.au3 has a file that is placed on the internet as a "black list" of email addresses. This list is for your program abusers, the list is not posted by XProTec.au3... just checked by it You can post this file ( and/or write to it ) however works for you 8) (PER PM REQUEST BY OP) Edited January 24, 2007 by Valuater Link to comment Share on other sites More sharing options...
webmedic Posted January 25, 2007 Share Posted January 25, 2007 besides unless you are using webdav or something similar you can not write to http. Smoke was right you need to access the files through ftp if you would like to work with them and in that case you would edit it local and then upload it to the server. Webdav will allow you to publish through http but you need a web server that has that feature installed and seeing as how microsoft has dropped frontpage as a product I'm not sure if webdav as a protocol will last much longer. Link to comment Share on other sites More sharing options...
FreeRider Posted April 2, 2008 Share Posted April 2, 2008 Hi Zedna, I'm also trying to use InternetWriteFila and found the correct way to build the code under autoit... Except that to be able to write I must first use FtpOpenFile with the access parameter set at "GENERIC_WRITE" and it does not work (it's OK using GENERIC_READ). If you have an idea which could bring me foreward... Thnks FreeRiderHonour & Fidelity Link to comment Share on other sites More sharing options...
Zedna Posted April 3, 2008 Share Posted April 3, 2008 Hi Zedna,I'm also trying to use InternetWriteFila and found the correct way to build the code under autoit... Except thatto be able to write I must first use FtpOpenFile with the access parameter set at "GENERIC_WRITE" andit does not work (it's OK using GENERIC_READ).If you have an idea which could bring me foreward...ThnksI have no idea at this moment but post your code. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
FreeRider Posted April 3, 2008 Share Posted April 3, 2008 Hi Zedna,I found a bypass to fix the problem and will post the code in a new version of my FTPV3.AU3 ==> Which will become FTPV4.au3Posting Location will be : http://www.autoitscript.com/forum/index.ph...st&id=19302I'm waiting a bit just to fully test all functions and than I'll release the file.Bye ,FreeRider. FreeRiderHonour & Fidelity 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