Re: Long Execution Time - Safe Mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/3/5 דניאל דנון <danondaniel@xxxxxxxxx>:> Hello.> I have a script which updates some database by loading information from> external websites.> For example, it has a table of website addresses, and it updates their HTML> source on the database.> I am using cronjobs to activate the script every 8 hours.>> The problem is the server I am running my script on has SAFE MODE ON, which> prevents me from changing the max_execution_time or memory limit.>> I talked with the server-owner and he changed the max_execution_time to 120> seconds, But still - its not enough. Either the time runs out or the memory.>> Do you have any idea how can I solve this problem? I thought about opening> multiple sessions with fsockopen with timeout of one second to the script it> self - but its complicated, so first - is there any better solution?>
I have a feeling that PHP might not be the right tool for this job. Toavoid a flame war, I won't mention alternatives.
-- Dotan Cohen
http://what-is-what.comhttp://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-תا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-يА-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Яа-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-яä-ö-ü-ß-Ä-Ö-Ü

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux