Jump to content

Scheduler that interacts with CI or php and database


ethereal1m

Recommended Posts

Yes it's possible. Querying a database doesn't really have anything to do with CI though, though I suppose you could use it's DB libraries if you where that way inclined.

 

Anyway, all you need do is write a script, and have that script executed via cron.

 

http://en.wikipedia.org/wiki/Cron

oh.. that was a good idea.. I was thinking about using oracle scheduler to do the job (it is a oracle database).

 

Ok, this is the detail scenario I should had mentioned earlier, suppose there is filter that is customizable via CI GUI. Basically the filter tells a condition of a query, for example which 'column' or which 'where clause' condition of a database table suppose to be fetched. The one that does the actual execution of a query is a pl/sql procedure that resides in the database. The query uses the configuration that it gets from the filter.

 

So I'm thinking about making the CI GUI upload the filter configuration into a text file and let the pl/sql procedure read the configuration. The procedure is then executed by scheduler (whatever that is). Is this doable?

 

Is there any more practical way to do this? The interface must use CI but the scheduler and the entity that does the query can be anything...

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.