N
N
nezzard2016-08-21 17:33:16
PHP
nezzard, 2016-08-21 17:33:16

Is it possible to edit php.ini via cron?

Good afternoon, maybe this is a game, but the question arose, is it possible to edit the client php.ini with the necessary parameters using cron? Or replace it with a pre-made file

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2016-08-21
@Sanes

Maybe

S
strelmax, 2016-08-21
@strelmax

Can. Add to cron
to replace with the finished file:
cat your_php.ini > client_php.ini
or if the version of file-utils > 4.1
cp --reply=yes your_php.ini > client_php.ini
Well, for editing, use text processing utilities (awk sed)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question