ok, I know you can use cron to execute php scripts but can you use php to start these cron jobs in the first place?
Well, if the cron is simply running a php script, then I assume what you mean by using php to start the cron, is using php to run another php script, which include() or require() will do.
Just do:
<?
include ("filename.php");
?>
When you run that, the file filename.php will be run.
Unless I'm missing something here, which is possible 😃
A cron job is simply an automatic job that runs at certain times\days\dates etc... depending on how its setup.
Edit
I'm trying to start a site that is a game of sorts. Players register and log in etc, they sign themselves up to a game. When there is enough players the game begins. The game lasts 48hours. Then I need certain things to happen.
Okay, try this.
Add some code to your registration page, every time a player signs up successfully query the db for the number of players now signed up, if that number is equal to the required number of players for the game to begin, include the script that starts the game running (or, as it may be, just send an update query to the database that makes the needed changes to start the game).
Hope that helps!