I just had to change my web hosting company and have a few issues with my web site now, one is the cron job for nws alerts. I had it running just fine on my previous host but not the new host (ICDSOFT).
According to the host (ICDSOFT), to use a cron job to run a PHP script I MUST include this code at the very beginning of the script: #!/usr/local/bin/php.cli
Specifically, this is what the Host states - "In case you use a PHP cron script, please set its first line to: #!/usr/local/bin/php.cli ".
So when trying to use a cron to run "nws-alerts.php" with that line of code added I get the following error:
#!/usr/local/bin/php.cli
Warning: session_start(): Session cannot be started after headers have already been sent in /home/lakehuronweather/www/www/Settings.php on line 388
Without that code added the cron job won't run and tech support verified it needed to be added.
Where I live I really like to have alerts for the surrounding counties and the cron job was the best way to go. As of now I reduced the codes to 4 until I can get it sorted.
Any help will be appreciated and thanks.