文字列コンテンツを渡すと正常に動作し、送信時に結果が表示されます。しかし、を使用して受信したWebページのコンテンツを渡すとescapeshellarg(strip_tags($text));
. 画面には何も表示されません。
<?php
//sent has value "http://www.paulgraham.com/herd.html"
$url=$_POST['sent'];
$text = file_get_contents($url);
$temp=escapeshellarg(strip_tags($text));
//$temp="one two two"; If I pass $temp with string content it gives result
echo $temp; //Echo $temp shows content of webpage
$output=shell_exec("/home/technoworld/Videos/LinSocket/Modular/x '$temp'");
echo $output;
?>