Jump to content

Filewrite() to .TXT on website


Recommended Posts

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

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+trial

I'm guess i'm tring to do something similar to his Blacklist.txt write.

Edited by onestcoder

Need a website: http://www.iconixmarketing.com

Link to comment
Share on other sites

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 :D

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 by luvmachine
Link to comment
Share on other sites

  • Moderators

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

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 by Valuater

NEWHeader1.png

Link to comment
Share on other sites

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

  • 1 year later...

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

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

I have no idea at this moment but post your code.

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...