PHP - Include or Header -
i need advice on best way set process running runs series of scripts run 1 after other , potentially cron job. each 1 can run on own depends on previous job having run work. sequence follows:
- set variables jobs.
- extract csv file email when arrives.
- parse csv file database
- generate series of pdf files based on database new data , 1 above.
- email pdfs required recipients.
given above cannot step until previous 1 complete.
each step own php script.
what i’d advice on best method set is.
at moment have single page above include statements in 1 page.
each 1 runs , next runs etc.
i’m not sure if long script best way or whether should use header statement make each 1 run , return main action page variables confirming previous script has run.
does make difference?
better if use require because require throws error if doesn't file include doesn't.
Comments
Post a Comment