My hosting company uses H-Sphere as the interface for it’s users to “control” or customize their web hosting. A while ago, I accidentally ran across the documentation for H-Sphere. I figured out that I could use a cron job to “schedule” a time for my php script to be run everyday, independant of me calling it from a browser. Since I figured that out, I’ve been trying to figure out how to make it call a php script. For a few days, I was getting an odd (to me) error:

directory/cron-job.php: ?php: No such file or directory

This told me that it wasn’t recognizing the php file as an “executable”. After a lot of digging, I found the wget command. So I tried that and got this error:

/bin/sh: /usr/bin/wget: Permission denied

GREAT! I find the solution to my problem and I don’t have permission to the wget command! After more searching, I found the nice command on here. That was my solution! I now have a job that will run everyday at 7:00 am EST that will read through the user table to find any users that want to receive birthday reminders by email and then send each user an email of all future birthdays. I have a lot of kinks to work out with that but I also have a lot of other bugs with my system as well.