The one below is a common way how a master and a child script do data sharing:
cron job — schedule –> master script
HTTP request — trigger –> child script
master script –> [database] <– child script
But is it possible to them to share the data using any of these below, instead of the database?
globalvariable- system storage
- session storage
- memcache / apc / any other thing like these
memcached– yesapc– yes, but will require explicit configuration to enable in cli sapiramfsto store files in an in-memory filesystem.In case i left anything out, you can search for php interprocess communication