PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i am a newbie i make this code for word to word translation it works fine until my dictionary is under 50000 words but now it given error time out if there is any way to make this code better? thanks in advance
Error: Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\salar\engine\modules\show.full.php on line 623
You'll probably want to store the output in a cache file for up to an hour or so, depending on how often the data changes. Then just display the cache file instead of executing the code.
I'd suggest to export the wordlist to a php array, store that somewhere in a file and include that file. Assuming you have opcode cache the loading latency should be pretty low. Of course you'd need to regenerate the file when your database changes.