Answer the question
In order to leave comments, you need to log in
How to use PleskPHP54 from the command line?
Good day!
There was a need to change the php settings during the script execution.
Plesk 12
IIS
PHP
installed on windows server
C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\php.ini
; Maximum execution time of each script, in seconds
; php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 0
Even with these settings, max_execution_time = 30
Which data does php give priority to, how can I determine where the settings are being read from?
php script is run via bat file.
Like this
@echo off
cd "C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54\"
php.exe "C:\inetpub\vhosts\site.org\httpdocs\convert.php"
pause
How to use PleskPHP54 in such cases and correctly whether to use like this?
ini_set returns false
set_time_limit returns false
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question