Try to put this into your .php file
<?php #!/usr/local/bin/php -q//your code here?>
Then if you include any file into this file you must use something like:
include"/var/www/../your_absolute_path_from_root_folder/connect.php";
Finnaly make sure this file has the right permissions..Try
chmod 755/var/www/.../file.php
Then if you edit your crontab file with the following command
vi /etc/crontab
put something like
106*** root php /var/www/..path../file.php
and restart the service with this command
/etc/init.d/cron restart
you have do your job!!
Note-Tip:the php file isn’t neccessery to be into public_html folder!!拿望远镜看别人,拿放大镜看自己。