Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




1819 posts

Uber Geek

Trusted

#14844 23-Jul-2007 16:25
Send private message

I am writing a php script and it looks like it's timing out as it just stops if I do too much looping
or processing.

If I only process a few forum, it;s ok, if my list of forums to process is 14 it does.

I wonder if php has a setting that stops my script running to long.



Create new topic
140 posts

Master Geek


  #79306 23-Jul-2007 16:55
Send private message

Maybe this would help you:

Set time limit

643 posts

Ultimate Geek


  #79311 23-Jul-2007 17:08

theres a maximum memory setting in php.ini I've had to increase from default for some webmail clients when a person's inbox is over a few GB. maybe check that too.




Sniffing the glue holding the Internet together

 
 
 
 




1819 posts

Uber Geek

Trusted

  #79312 23-Jul-2007 17:28
Send private message

Thanks you two for the help. Doing a set_time_limit (0); totally fix my last set of problems.

I've constructed an rss feed builder for a forum that has no rss. http://forums.slingshot.co.nz
It's very beta as I have not learned how to run the script via a task scheduler yeah and doing it manual.

If you would like to see the beta feeds for then look at http://homepages.slingshot.co.nz/~takeme.brett/


Thanks Barf, I think you also gave me good advice the other day in the chartroom.

643 posts

Ultimate Geek


  #79313 23-Jul-2007 17:38

no problem mate

I've scheduled tasks before using cron and wget, this is how drupal runs it's maintenance tasks too.
and example crontab to hit http://user:pass@example.com/periodic_task.php every 5 minutes would look like:

*/5 * * * * wget -O - -q http://user:pass@example.com/periodic_task.php


from a shell account 'crontab -e' edits the crontab file. however I'm not a PHP guru or even a PHP developer so there may be a better way to do this. windows task scheduler maybe?




Sniffing the glue holding the Internet together



1819 posts

Uber Geek

Trusted

  #79491 24-Jul-2007 20:41
Send private message

Sounds like you have a linux platform. I have XP.windows,  not a good platform for php developement. Anway,
I'm going to use a taskmanager and run the php from like a dos shell.

php.exe -f "D:\www local\htdocs\slingshot forum 2 rss\Slingshot RSS Builder.php"

You mentioned drupal, is that Drupal and is google code using an example of it.



1819 posts

Uber Geek

Trusted

  #80128 28-Jul-2007 16:43
Send private message

found a windows version of cron called nnCron LITE

I call my script like this, every 55mins

*/55 * * * * cmd /c c:\wamp\php\php.exe -f "D:\www local\htdocs\slingshot forum 2 rss\Slingshot RSS Builder.php"

Seems to be working but only getting a correct feed from using FeedReader.

Thanks for the help.

Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Vodafone and Imperial College London invite smartphone users to help fight diseases
Posted 9-Apr-2020 11:09


Unisys Always-On Access Powered by Stealth provides fast, encrypted remote access for workers
Posted 9-Apr-2020 10:00


Intel introduces 10th Gen Intel Core H-series for mobile devices
Posted 2-Apr-2020 21:09


COVID-19: new charitable initiative to fund remote monitoring for at-risk patients
Posted 2-Apr-2020 11:07


Huawei introduces the P40 Series of Android-based smartphones
Posted 31-Mar-2020 17:03


Samsung Galaxy Z Flip now available for pre-order in New Zealand
Posted 31-Mar-2020 16:39


New online learning platform for kids stuck at home during COVID-19 lockdown
Posted 26-Mar-2020 21:35


New 5G Nokia smartphone unveiled as portfolio expands
Posted 26-Mar-2020 17:11


D-Link ANZ launches wireless AC1200 4G LTE router
Posted 26-Mar-2020 16:32


Ring introduces two new video doorbells and new pre-roll technology
Posted 17-Mar-2020 16:59


OPPO uncovers flagship Find X2 Pro smartphone
Posted 17-Mar-2020 16:54


D-Link COVR-2202 mesh Wi-Fi system now protected by McAfee
Posted 17-Mar-2020 16:00


Spark Sport opens its platform up to all New Zealanders at no charge
Posted 17-Mar-2020 10:04


Spark launches 5G Starter Fund
Posted 8-Mar-2020 19:19


TRENDnet launches high-performance WiFi Mesh Router System
Posted 5-Mar-2020 08:48



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.