Answer the question
In order to leave comments, you need to log in
How to repeat command from console inside php?
Hello.
People, question. Yesterday in the console with the command
for file in *
do
name=$(echo "$file" | cut -f 1 -d '.').png
convert $file -fuzz 17% -transparent white "/new/$name"
done
Answer the question
In order to leave comments, you need to log in
You can use unlink
https://www.php.net/manual/en/function.unlink.php
You can use `string to execute` to execute the string as a command line
https://www.php.net/manual/en/language .operators.e...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question