How can I run a cron job to execute a php file which is in a folder protect by .htaccess and .htpassword? I did it in other folder. It worked fine. But I don't want other users access the file.
The easiest and safest way is to put the php file out of apache's sight. Make a directory called /usr/cronscripts/ and have thr crontab run it from there.