donfelicico Posted February 21, 2010 Share Posted February 21, 2010 http://www.twelix.com is up and running, but it's too slow. 2 possible solutions... The main problem is that the script takes about 60 secs, way too long to wait. 1. I'm looking for a way to make a cron file run multiple scripts at once. 2. i'm looking for a way to have a form field being submitted, start running the script (without making the browser screen load all the time) just need it to exit(); and have the script email the user when it's done. Any ideas? Link to comment https://forums.phpfreaks.com/topic/192832-twelixcom-help-multithread/ Share on other sites More sharing options...
jskywalker Posted February 21, 2010 Share Posted February 21, 2010 sorry, this is not an answer to the questions asked... But Why is this link: http://twitter.com/#search?q=cats%20and%20dogs so much faster than this link: http://www.twelix.com/index.php?searchy=cats+and+dogs i think you might need to optimize some of your code, and only as 1 of the laterst attempt i would recommend multithread, because this i makeing simple things eve more complex ;-) Link to comment https://forums.phpfreaks.com/topic/192832-twelixcom-help-multithread/#findComment-1015744 Share on other sites More sharing options...
donfelicico Posted February 21, 2010 Author Share Posted February 21, 2010 it's faster because twelix saves everything in the database, and then analyses for the graphs. no more optimizing possible... Link to comment https://forums.phpfreaks.com/topic/192832-twelixcom-help-multithread/#findComment-1015748 Share on other sites More sharing options...
jskywalker Posted February 21, 2010 Share Posted February 21, 2010 making graphs should not be so slow on next link 3 graphs are created from a text-file: http://bow.podzone.org/eve/enop.php and the graphs on your site dont look that complex.. Link to comment https://forums.phpfreaks.com/topic/192832-twelixcom-help-multithread/#findComment-1015759 Share on other sites More sharing options...
donfelicico Posted February 21, 2010 Author Share Posted February 21, 2010 it's not the graphs that are slow. It's collecting the data from twitter (followers per user, then undoubling them etc). i have to get the API to collect about 50.000 usernames per search, that takes a while... Link to comment https://forums.phpfreaks.com/topic/192832-twelixcom-help-multithread/#findComment-1015803 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.