What Is Shell Execute and How To Easily use it In Your PHP Code - Shell_Exec() Tutorial By Gli7CH

preview_player
Показать описание
shell_exec() — allows you to execute commands via shell and return the complete output as a string to your PHP application. The code is extremely simple to follow and can make your PHP applications even more versatile in the future.

I also discuss how to use a string output simply from a python file, by exploding the returned string and put the outputs into a variable. If you have any questions feel free to leave them in the comments below.
Рекомендации по теме
Комментарии
Автор

how can i execute java file using this command

santoshram
Автор

I got it running on a win7 It gave me a lot of work to configure windows and more apache to allowd it

The Apache Ini? No If i do restore win 7 and install all the same WAMP server and if I recover the apache directives it do not work either..

Now tried on Linux Mint 21 It almost work Php can excec some system commands But when I call R nothing ...

Thanks for posting

marioadiez
Автор

Hello brother, I want to show you a code. This code runs exe on the server side, but when the remote user logs into the site, this code does not work on the client side. Can you help me? This is the code I wrote:

<?php

shell_exec('c:/test.exe')

?>

adnancoffeeci
Автор

Como ejecutar código python flask desde php

NomarRH
Автор

we need to execute this command set i have try all solution but it's not worked please help me to execute this command using php code ... it's execute using command line

tried code :
shell_exec('set 2>&1');

truptigaikwad