run php script automatically without cron code example
Example: cron run php script
# -q is for quiet mode
php -q ${HOME}/public_html/script.php
# if needed by your script:
cd ${HOME}/public_html/; php -q script.php
# with a config file:
php -c ${HOME}/php.ini ${HOME}/public_html/script.php