exec函数的使用 $str = `ifconfig`;// parse the string $strecho $str; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是这个exec ("ifconfig" ,$string);echo $string; exec ("ifconfig" ,$string);print_f $string;//输出所有//如果需要输出某一行,可以用echo $string[5]; $string = `ifconfig`;echo $string;或者ob_start();system("ifconfig");$string = ob_get_contents();ob_clean();echo $string; 关于读取数据编码问题 一次性操作两个表,一定要用事务处理吗? 表格查询和输出 请问一个下拉菜单的问题。 php 发手机短信 INSERT可以这样做么? 获得一个字符串中某个字符的个数,是哪个函数啊 php文件上传怪问题,急急急! 对于这个问题,谁给个好的方法! 请问如何在打开页面时自动打开word文档?? 100分问个PHP用SMTP发邮件的解决方案 如何关闭一个php类
exec ("ifconfig" ,$string);
echo $string;
print_f $string;//输出所有//如果需要输出某一行,可以用echo $string[5];
echo $string;或者
ob_start();
system("ifconfig");
$string = ob_get_contents();
ob_clean();
echo $string;