i want to run a php program constantly in the server which would download some things and store them..
I was thinking of creating a script and running that in cron..
But i wonder is there any other simple method or light weight component which takes less memory in the server while running continuously ??
I thought of another simple thing,
creating a php script with infinite max_execution time and running the code inside a while(true) loop (indefinite loop) with some sleep and then starting the program using php..
Which would be the better available method to do this?