Hello,
I'm not very experienced in web development. My question is this:
Say I have a local txt file on MY computer that is being constantly updated by a program running locally. For simplicity, let's say that it only holds one word at a time, but that word changes every few seconds or so.
I need to find a way to have that word automatically uploaded to a web page where it can be accessed anywhere.
I've been looking into things like PHP, MySQL, Java Script, and other web friendly languages for hours now and haven't had any solid leads. These languages are very new to me, but I consider myself to be experienced in C/C++. I confident in my ability to learn what I need to.
If you have any advice on where to start (what language to use, the feasibility of this) or any general advice to solve this problem, it would be much appreciated.
-Jake
4 Replies - 807 Views - Last Post: 04 June 2010 - 01:31 PM
#1 Guest_Jake*
How can I create a webpage that automatically updates it's data ba
Posted 03 June 2010 - 01:07 PM
Replies To: How can I create a webpage that automatically updates it's data ba
#2
Re: How can I create a webpage that automatically updates it's data ba
Posted 03 June 2010 - 01:16 PM
Usually that would be handled by the webserver itself. For example if you run apache, and you have a file.txt in the directory to which you serve your website site (if the permissions were right) you could just go to
Then on your server you could have an application/script/cron job that updates file.txt to whatever you want, whenever you want it.
http://mysite.com/file.txtand see whatever exists in file.txt.
Then on your server you could have an application/script/cron job that updates file.txt to whatever you want, whenever you want it.
This post has been edited by RedSon: 03 June 2010 - 01:17 PM
#3 Guest_Jake*
Re: How can I create a webpage that automatically updates it's data ba
Posted 04 June 2010 - 08:52 AM
RedSon, on 03 June 2010 - 12:16 PM, said:
Then on your server you could have an application/script/cron job that updates file.txt to whatever you want, whenever you want it.
This is the part I don't know how to do. I want to know how to update a web page with some data automatically. So, I want to change that file.txt on my web space based on data being generated on my computer. I want a web page that updates itself without me uploading files to it. Would the easiest way to do this be writing a server side script or making some code locally? And what language would be suited for this task?
-Jake
#4
Re: How can I create a webpage that automatically updates it's data ba
Posted 04 June 2010 - 01:11 PM
You could write a script that sends the file generated on your computer via FTP as a scheduled task. If you can generate the file on the server, then it's far simpler.
#5
Re: How can I create a webpage that automatically updates it's data ba
Posted 04 June 2010 - 01:31 PM
Jake, on 04 June 2010 - 06:52 AM, said:
RedSon, on 03 June 2010 - 12:16 PM, said:
Then on your server you could have an application/script/cron job that updates file.txt to whatever you want, whenever you want it.
This is the part I don't know how to do. I want to know how to update a web page with some data automatically. So, I want to change that file.txt on my web space based on data being generated on my computer. I want a web page that updates itself without me uploading files to it. Would the easiest way to do this be writing a server side script or making some code locally? And what language would be suited for this task?
-Jake
Well it kind of depends on what you are trying to do. What languages are you familiar with? What kind of information are you trying to capture?
Using FTP to upload would be good, but your webhost might not support that. If you are running the server yourself, you could just have a batch script that does it or something. It really is a mixed bag of what can be done.
Page 1 of 1
|
|

New Topic/Question
Reply
MultiQuote








|