Hi Ricardo,
What is interesting is that the code I posted in this thread could be used to create a message forum. Basically the message forum code is in Purebasic, and people who have access to the message forum will have the Purebasic code running on their computer. Now when they run the program it checks for new messages and, if it finds them, it downloads them into the clients computer from a .html web page using the code I posted to just download the new message. It starts grabbing data with the tag sequence ?
Now when they want to post a message, it saves their message in a .html file with an embedded tag
sequence at the beginning and end of the message.
Using the code posted in Tricks and Tips on ftp(ing) files, the program then uploads the .html page to the web server.
And whala! The backbone of a .html based Message Board. The reason I would require anyone viewing the message forum to have the Purebasic program is that the message forum would be an integral part of a larger program. For example, if I created a program for teachers that helped them with seating charts and grades for their students. I could include an option to hook up with other teachers via the built in message forum to talk about how to best use the program and anything else teachers might want to talk about. By having the message forum coded into the program, I could also monitor if my program was being illegally copied by allowing only 1 e-mail address and password to access the forum per user.
This is only 1 of many possibilities with the code by Pille that I posted in this forum. I think this is big and the possibilities are many. We should not go by the assumption that the programs only use is to "rip" copyright information from someone elses web site. And then think, well what if they change the format, then it would mess the program up. I think this code is much more valuable in that you can put up a web page and format it just like you want and then use this program for many advantages. Another possibility is that this program can be used as the basis for a TOP 10 score board in video games. It logs into your web page, grabs the data between any two tags you create, saves it on the local computer and then displays the Top scores. If they make it on the top score, it logs into the TOP 10 web page, formats the data between two tags, and then uploads it with the product #. Once again, you can discourage illegal copies by allowing only 1 account for exceptance in the TOP 10 web page. That is people can't use the name Joe one game, then Bob the next for a single product #.
In otherwords, you can create whatever format you'd like, like 5 characters after the first START text contains the Hitpoints for the Elf. Then upload this file to the web using the ftp method posted in another message thread in Tricks and Tips.
Remember, the usefulness of this code goes beyond grabbing data from someone elses web page. When you are the author of the web page, and you control all the data, this is a very effective way of remote storage of variables/information that can be precisely pulled by another program.
So the next goal is to modify the code I posted in this thread to add the option of uploading the TEST.HTML file that is created, to the web.
Anybody have the time to do this or do I gotta do it?[/code]