You may have found the program's location, but you didn't find the file that runs it. The contents of public_html is entirely user defined; you can put anything in there, including cron jobs (though I don't see why you'd put a cron job in public space. I'd recommend putting it at the same level as public_html, not inside it.
To get the cron to run you set it up in the Control Panel; under advanced features you should find a reference to cronjobs.
If you don't, and you don't own the server, then you need to contact your hoting provider; whether or not a hosting company allows users to run cronjobs is up to the hosting provider. Some do not, and some require a request.
If you own the server or have shell access you can also (if your username isn't listed in the /etc/cron.deny file) find or create a user cronjob; from the shell, as the user or as root:
where USERNAME is replaced by the login username.
Then use your system default editor (hopefully if you're using the shell you know what it is and how to use it), enter a cronjob in the proper format. If you don't know the proper format you can learn it:
Do NOT just use the location/name of the php file, that won't work. You must start the command with the full path to your php interpreter followed by a space and then the full path to the program you want to run.
The following is only an example; on my linux desktop machine it would run a program I put into my personal home directory top level, test.php, at 4:01 am on the first day of every month:
Code:
01 04 1 * * /usr/local/bin/php /home/jeff/test.php
Note that while you can find the crontab files in /var/spool/cron you should NOT edit them there; editing them there will NOT enable them to run.
Jeff