Created
May 6, 2015 12:35
-
-
Save maranemil/bc1cff5dbd4a79176c26 to your computer and use it in GitHub Desktop.
Get Php Version and Set Memory Limit and Execution Time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ini_set('max_execution_time', 300); //300 seconds = 5 minutes | |
| ini_set('max_execution_time', 0); //0=NOLIMIT | |
| set_time_limit(10); // or this way | |
| ini_set('memory_limit', '256M'); | |
| ini_set('memory_limit', '3G'); // 3 Gigabytes | |
| echo '<!-- '; | |
| echo 'Die aktuelle PHP Version ist ' . phpversion(); | |
| echo ' -->'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment