如果我传递字符串内容,那么它可以正常工作,并且在提交时会显示结果。但是当我传递使用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;
?>