I want to make a php file that keeps running on the server while I shutdown my computer.
If its your server you can set a cron job to execute the php file lets say every hour or more often.
Try this :
ignore_user_abort(true); // continue to run script when browser timed out set_time_limit(0); // do not timeout script
I'll try it. Thanks
Note that the "set_time_limit(0);" won't work if you're in safe mode (and your ISP might not like it as it's tying up resources).
If you are allowed to run Cron jobs, setting it to run every few minutes would be an alternative solution.
James