14,974
edits
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
* Entry point | * Entry point | ||
** Run the script from web browser: timeout<ref>[https://stackoverflow.com/questions/5798707/browser-timeouts Browser Timeouts - Stack Overflow]</ref>/crash | ** Run the script from web browser: timeout<ref>[https://stackoverflow.com/questions/5798707/browser-timeouts Browser Timeouts - Stack Overflow]</ref>/crash | ||
** Run the script from command line: length limit<ref>[https://support.microsoft.com/en-us/help/830473/command-prompt-cmd--exe-command-line-string-limitation Command prompt (Cmd. exe) command-line string limitation] when error message 'The command line is too long.' met on windows.</ref> | ** Run the script from command line: length limit e.g. 8191 characters on {{Win}} <ref>[https://support.microsoft.com/en-us/help/830473/command-prompt-cmd--exe-command-line-string-limitation Command prompt (Cmd. exe) command-line string limitation] when error message 'The command line is too long.' met on windows.</ref> & 262144 on {{Mac}} high Sierra<ref>[https://serverfault.com/questions/69430/what-is-the-maximum-length-of-a-command-line-in-mac-os-x mac osx - What is the maximum length of a command line in Mac OS X? - Server Fault]</ref> | ||
* Interpreter level | * Interpreter level | ||
** First interpreter timeout/crash: e.g. First interpreter (.PHP) is timeout but second interpreter (.PY) is still running. | ** First interpreter timeout/crash: e.g. First interpreter (.PHP) is timeout but second interpreter (.PY) is still running. | ||
** Second interpreter timeout/crash | ** Second interpreter timeout/crash | ||
* System level | * System level | ||
** e.g. memory error caused by second interpreter | ** e.g. memory error caused by second interpreter | ||
* API level | * API level | ||
References | == References == | ||
<references /> | |||
== Related articles == | |||
* [https://stackoverflow.com/questions/34957283/how-to-properly-call-python-3-script-from-php How to properly call Python 3 script from PHP? - Stack Overflow] | * [https://stackoverflow.com/questions/34957283/how-to-properly-call-python-3-script-from-php How to properly call Python 3 script from PHP? - Stack Overflow] | ||
* [https://www.r-bloggers.com/integrating-php-and-r/ Integrating PHP and R | R-bloggers] {{access | date = 2017-12-18}} | * [https://www.r-bloggers.com/integrating-php-and-r/ Integrating PHP and R | R-bloggers] {{access | date = 2017-12-18}} | ||
* [http://php.net/manual/en/function.set-time-limit.php PHP: set_time_limit - Manual] | * [http://php.net/manual/en/function.set-time-limit.php PHP: set_time_limit - Manual] | ||
* [https://stackoverflow.com/questions/27863484/run-python-script-from-php-save-process-pid-and-dont-wait-it-to-finish Run Python script from php, save process pid, and don't wait it to finish - Stack Overflow] ''un-verified'' | * [https://stackoverflow.com/questions/27863484/run-python-script-from-php-save-process-pid-and-dont-wait-it-to-finish Run Python script from php, save process pid, and don't wait it to finish - Stack Overflow] ''un-verified'' | ||
[[Category:Programming]] [[Category:PHP]] [[Category:Python]] | [[Category:Programming]] [[Category:PHP]] [[Category:Python]] | ||