任何人都可以告诉我为什么这不起作用 [英] Can anyone tell me why this doesnt work please

查看:67
本文介绍了任何人都可以告诉我为什么这不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



使用linux

<?php

exec(" / bin / tar -cvzf myfile.tgz / home /" ;, $ arrayout,$ returnval);

?>


或者也许在您的系统上尝试它并告诉我它是否/什么和什么

你的linux是什么?


我也试过了


<?php

exec(" / bin / tar -c * \ | gzip \ myfile.tgz",$ arrayout,$ returnval);

?>


命令行中的两种工作方式都不适用于PHP


-nigel-

解决方案

arrayout,


returnval);

?>


或者试试它在你的系统上告诉我它是不是什么/什么以及什么

你的linux是什么?


我也试过


<?php

exec(" / bin / tar -c * \ | gzip \ myfile.tgz",


arrayout,


Using linux

<?php
exec("/bin/tar -cvzf myfile.tgz /home/",$arrayout,$returnval);
?>

or perhaps try it on your system and tell me if it does/doesnt and what
your linux is?

I''ve also tried

<?php
exec("/bin/tar -c * \| gzip \myfile.tgz",$arrayout,$returnval);
?>

Both work fine from the command line neither work at all from PHP

-nigel-

解决方案

arrayout,


returnval);
?>

or perhaps try it on your system and tell me if it does/doesnt and what
your linux is?

I''ve also tried

<?php
exec("/bin/tar -c * \| gzip \myfile.tgz",


arrayout,


这篇关于任何人都可以告诉我为什么这不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆