试试
<?
system("/myfilepath/myfile | test.t");
?>
<?
system("/myfilepath/myfile | test.t");
?>
解决方案 »
- Smarty 3.1.8 中的注册函数 registerPlugin使用问题
- 如何把组合出来的数字按从小到大排列
- PHP题目,新手不知道如何下手,PHP菜鸟问题很简单的。
- 页面显示无法载入mcrypt这是什么意思
- php上传视频并自动转码成FLV功能实现!
- dedecms的支付接口怎么搞。。没demo
- date时间函数的问题
- 设置register_globals = Off后session在两个页面间不能传递 急急急急!!!
- 哪儿有 pear 的中文手册?
- 用php如何创建一个mysql的table?
- 把一个字符串类型数据转成整型怎么转?
- 在PHP中使用socket的几个问题(接收的最大字节数如何设置,如何判断接收完成)
是不是你的手误,你是准备这样写的:system("/myfilepath/myfile > test.t");对不对
我这样试了,也是不行
这样也试了:system("/myfilepath/myfile > test.t &");
浏览器都不会马上返回
例如:$fp = fsockopen($db->web_private_ip,$db->web_private_port);
if($fp){
//echo "GET /frame/email/sendmail.php?user_name=".$_SESSION["forgetpwd_user_name"]."&user_pwd=".$new_pwd."&user_email=".$email." HTTP/1.0\r\n";
fputs($fp, "GET /frame/email/sendmail.php?user_name=".$_SESSION["forgetpwd_user_name"]."&user_pwd=".$new_pwd."&user_email=".$email." HTTP/1.0\r\n");
fputs($fp, "Host: localhost\r\n");
fputs($fp, "Connection: Close\r\n\r\n");
fclose($fp);
echo "<script>window.location='/modules/display.php?url=/html/GmPage2Step3.htm';</script>";
}else{
echo "<script>alert('邮件发送错误,请与管理员联系!');</script>";
}
$a | $b
将在 $a 或者 $b 中为 1 的位设为 1。