![]() |
I am not a programmer and have only experienced dos batch files before. I have constructed a private website for my friends and somebody of that group is going travelling and would like to keep an online diary on my page.
The page runs on a simple unattended server in my garage that automatically accepts uploads through an MSN messenger running on it. I would like a simple program that checks for the existance of a certain named file 'traveller.txt' for example. Then if it exists, move it into a directory where it can be appended to previous traveller.txt files and then displayed on the website. So, the traveller uploads her daily diary, it gets moved out of the 'uploads' directory and her previous uploaded text get ammended to it then put into a directory where the website can see it and display it as text on the page. I don't think thats too hard to write as a batch file that waits 60 seconds before checking and running in a loop.. Can anybody help me with this please?! Apologies if this isn't in the right sections, but this is a sort of simple script required. |
I suggest learning PHP - if you do it right, you can have it automatically update it as it goes.
|
i think it would be alot easier to find a php blogging script that you can install and would do this but you wouldnt have to upload anything via msn anymore you could just have them log in and post there diary kind of like this forum software even :) but sorry i cant help with your actually problem as i dont know how i would go about doing it sorry
|
That's fairly easy to do in C++... you can also run it in a scheduled task or a service.
If file exists in X... move file to Y, appending to originial file... sounds like something i may need eventually, i'll look into it, if i have sufficient time. |
ONE ip one Message submit
Dear I have website it also have a feedback form.
I am using cgiemail form v1.6 The user mostly submit the feedback form more than one time. Some times a form submitted more that 10 times with the same Ip address. I want to restrict submit with one IP Address for atleast 24 hours. My site hosted at linux \ unix based server I do not know JSP or PHP. Please help me to solve this problem email me at davidjohny@yahoo.com Thankyou in advance David |
Hey David, double posting is not necessary. And hijacking threads is very annoying. By the way, could you use a larger font, please, I'm having trouble reading that from the next room. Thanks
|
That's insecure.
|
Just because I was bored ;)
:
from time import sleepYou'll need the Python runtime. Comments pretty much explain it, but if you have any questions, let me know. |
| All times are GMT -5. The time now is 4:16 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC