Hey everyone, I know you can set a maximum memory limit in php.ini to prevent scripts from eating up server resources, but is there a way to set the limit higher for a particular script, or maybe even on the fly (like set_time_limit)? The reason I ask is because I have a segment of code that, deep within a script of SQL queries and sorting, takes .76 seconds to run the while ($data=mysql_fetch_array($result)) { // make array }. Outside of that script it takes only .04 seconds --- same code exactly, same queries. I'm assuming the script is taking up more memory than the test script that takes only .04 seconds. Is there a way to prioritize this script so it can take up all the memory it wants and have as fast execution as possible? It's a search engine code for our site and I'm trying to speed it up as much as possible. MySQL is running at great speeds, but PHP is slowing us down.
Thanks,
Mike