August 21st, 2000, 08:05 AM
-
Can any one tell the exact use of the exec function.And Why it is used. Do Any site have a god and straight forward Tutorial for this function.
August 21st, 2000, 08:30 AM
-
you can run shell commands eg:unix commands etc using exec() - which brings me to a question of my own, somebody once posted unix code for resizing an image - I have searched high and low for it - if anyone an point me in the right direction - it would be much appreciated.
------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL
August 22nd, 2000, 08:36 AM
-
Can any body make it clear how to use exec function or reccommend any site for it.
August 22nd, 2000, 09:39 AM
-
The function exec() is for you to execute an external program. It lets you run commands that you would normally be able to run on your telnet account say. However it only returns you with the last like of the result.
<?
$string = exec("/bin/ls");
echo $string;
?>
The above example would be the simpliest i could think of =)
There's other functions like system() which would execute and then displays the output too. Just like the above example.. just swap the exec for system.
scoobydoo
August 24th, 2000, 05:32 AM
-
Is there a nice tutorial about how a exec() and system() functions can be implemented.