Topic: Replacing a file automatically (Read 761 times)
Bill Cosby is my Father
Posts: 4
32 credits Members referred : 0
« on: Feb 11, 2007, 06:28:45 am »
Hi, I was looking for some way to automatically via somekind of script of whatever, I can replace a HTML file. For example having something like 20 HTML files in a folder and that at 12:00AM it takes a HTML file from that folder and overwrites the HTML file of another one, there is someway to do that?
Regards
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Feb 11, 2007, 08:50:36 am »
please explain a little more to make it clear...
in the mean time check the PHP file functions (fopen, fget, fwrite...)
Bill Cosby is my Father
Posts: 4
32 credits Members referred : 0
« Reply #2 on: Feb 11, 2007, 09:59:27 am »
Hi again, thanks for your reply.
I need to replace an HTML file once a day, I have already done all the HTML files. So, manually I just need to upload the file replacing the old one, once a day. My question was If I can automate this process uploading all the files to some folder in the site.
Regards
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #3 on: Feb 11, 2007, 11:09:07 am »
yes of course, but I think you have no idea how to do that?
do you have some knowledge about PHP?
Bill Cosby is my Father
Posts: 4
32 credits Members referred : 0
« Reply #4 on: Feb 11, 2007, 05:09:42 pm »
No, you're right about that I asked thinking in some script already done that I can edit to make the trick, but of course, not always everything is easy
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6002