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:

  1. set variables jobs.
  2. extract csv file email when arrives.
  3. parse csv file database
  4. generate series of pdf files based on database new data , 1 above.
  5. 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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -