PHP is not a perfect match for server script, I'm not sure what you want to achieve, anyway, you simply write a crontab file something like this:
10,30 18 1-5 /export/home/your_dir/launcher.sh
that will run the launcher.sh on Monday to Friday at 18:10 and 18:30. Then Run your PHP in launcher.sh. something like
#!/bin/sh
php /tmp/abc.php
For more details, look into your crontab man pages.
Simon
munaa80 wrote:
hi,
could you tell me please how can i use crontab with php.
steps to explain for me how and where to put the crontab.
thanx