Welcome Guest, Not a member yet? Register   Sign In
Process a big php script
#1

[eluser]jgodino[/eluser]
Hello:

I need to run a big php script in batch mode.
Is there a library or something to do this?

Thanks

Javier
#2

[eluser]Phil Sturgeon[/eluser]
Do you mean you need to get CI to run another PHP file, or do you need to get your CI script run as a batch file from cron?
#3

[eluser]Mike Ryan[/eluser]
What do you mean by "big"? i.e. Will it take a very long time to run, or use up a lot of memory?

If you are on Linux you could use cron to process the PHP script at regular intervals. Windows has similar scheduling capabilities.

EDIT: I really need to refresh the page before I post to make sure someone has not already answered the question!
#4

[eluser]jgodino[/eluser]
Yes, I need to run a CI script as a batch file from cron.
I need to create a PDF file from 200 records.
#5

[eluser]simshaun[/eluser]
Search around the forums for CI from CRON.
I've seen a few, and there is an extension in the Wiki somewhere that allows you to run a CI script from cron.
#6

[eluser]taewoo[/eluser]
http://ellislab.com/forums/viewthread/99498/




Theme © iAndrew 2016 - Forum software by © MyBB