再问"exec()"的用法
各位Master:
以下是我调用"exec()"的执行过程,不知有何错误:
$File = "test.txt"
if (!file_exists($File)) {
echo "test file not exist".<br>";
exec( "echo 0 > $File"); //这样用是否可以产生一个新文件?
}
如果以上代码没问题,为何我在IE5.0(执行环境:WIN98+PWS4.0+PHP4.0)中会报如下错误:
Warning: Unable to fork [echo 0 > test.txt]
顺便再问一下:为何在IE5.0中PHP文件中"\n"不起作用:
例如:
echo "hello world.\n"
echo "This is test."
执行效果却是: hello world.This is test.
还请各位专家指教.多谢