exec output php
$output = exec('ls');
php execute command and display output
They have slightly different purposes :-
1. exec() is for calling a system command, and perhaps dealing with the
output yourself.
2. system() is for executing a system command and immediately displaying
the output - presumably text.
3. passthru() is for executing a system command which you wish the raw
return from - presumably something binary.
Regardless, I suggest you not use any of them. They all produce highly
unportable code.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us