rameshfaj Posted April 15, 2007 Share Posted April 15, 2007 I wanted to change the attributes of an image like its size,resolution etc using the "convert" command available in Linux.How can I proceed,any idea will be appreciated! Link to comment https://forums.phpfreaks.com/topic/47121-using-linux-commands-from-php-scripts/ Share on other sites More sharing options...
xenophobia Posted April 15, 2007 Share Posted April 15, 2007 There is a function named 'exec()' which can triggle UNIX command. Visit: http://my2.php.net/manual/en/ref.exec.php for more details information. Hope this help you. Link to comment https://forums.phpfreaks.com/topic/47121-using-linux-commands-from-php-scripts/#findComment-229778 Share on other sites More sharing options...
neel_basu Posted April 15, 2007 Share Posted April 15, 2007 You Can also do this <?php header('Content-Type: text/plain'); $shell_cmd = `ls -l`;//Your Unix Shell Command echo $shell_cmd;//echo the Output //Note : Its the Backticj Operator ?> Link to comment https://forums.phpfreaks.com/topic/47121-using-linux-commands-from-php-scripts/#findComment-229830 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.