I have made a PHP script which takes days to execute (Web Article Generator) and is there any way that I can make the while loops do more Instructions Per Second using php. Because when executing the script, the servers resources are very low (15% memory & about 9% of cpus) which means the server has plenty of room for a faster execution time. The only thing that I can think of so far is to have a page with 16 iframes all executing a separate while loop of the same php applet but I really need a PHP solution.
If you have any suggestions for increasing the Scripts Instructions Per Second or making the execution time faster then please post them.
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
Recommended Answers
Jump to PostYou can increase the memory limit in PHP which may help with the problem, see http://www.ducea.com/2008/02/14/increase-php-memory-limit/
If PHP is installed on a remotely managed server, this may not be an option depending …
Jump to PostAssume you have hardware that meets to run your script.
If so,
1. Optimize your SQL.
2. Install memcache extension in PHP.Hope it helps.
All 5 Replies
Will Gresham
81
Master Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
PoA
12
Posting Whiz in Training
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
R0bb0b
344
Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.