Shell PHP
the shell script is as follows
cro_file=$dir_or_file"/crontab_php"
-sharp
if [ -f $cro_file ]
then
-sharp cat
cat $cro_file
else
echo "$cro_file not found."
fi
crontab_php content format (using Tp5 framework structure)
-sharp
-sharp
application\index\index\index.php
actually execute the command
php application\\index\\index\\index.php
-sharp
-sharp
has two problems:
- do all scheduled tasks have to be written separately?
- how can I directly perform the scheduled tasks written in the framework without going to http?