jtf107
10-26-2010, 09:48 PM
I have a file on my website that I need to make a backup of every 30min. So what I was going to do is make a cron job and have it run a php script that would make a copy of a file. I tried:
<?php
$file = 'entries.txt';
$newfile = 'backup.txt.bak';
if (!copy($file, $newfile)) {
echo "failed to copy $file";
}
?>
but that is disabled for security purposes.
I just started out with php and dont really know that much, so could someone please guide me to completing this task?
<?php
$file = 'entries.txt';
$newfile = 'backup.txt.bak';
if (!copy($file, $newfile)) {
echo "failed to copy $file";
}
?>
but that is disabled for security purposes.
I just started out with php and dont really know that much, so could someone please guide me to completing this task?