Just for the record, I don't have the first line you mentioned, just usual PHP, and it works perfectly as well, so I'd say it doesn't seem to be crucial.
And as someone once said to me, you probably don't want your cron job in a public directory, because anyone finding the url can activate...