2 Easy Questions(I Think!)
Posted: Tue Nov 08, 2005 11:16 pm
Hi guys
Firstly thanks for all who have helped me here - made tasks so much easier!
Now I have some php code on my server which takes a bunch of text files and saves it to a directory on the server.
What I would like to do is make two copies of these files. One to be saved in the directory listed above and another to a test folder
- test_$suffix/words.txt
How do I get a copy saved? I can't seem to get it to work
The other question I have is how can I get a cron job to run every 7 seconds? At present I'm only able to run it every 1 minute.
Thanks in advance!
Nikhil
Firstly thanks for all who have helped me here - made tasks so much easier!
Now I have some php code on my server which takes a bunch of text files and saves it to a directory on the server.
Code: Select all
if (is_uploaded_file($_FILES['words']['tmp_name'])){
move_uploaded_file($_FILES['words']['tmp_name'],$SCRIPT_PATH."task_$suffix/words.txt");- test_$suffix/words.txt
How do I get a copy saved? I can't seem to get it to work
The other question I have is how can I get a cron job to run every 7 seconds? At present I'm only able to run it every 1 minute.
Thanks in advance!
Nikhil