在安装PHP时,我在Cygwin中执行mkdir之后遇到了'缺少操作数'
问题描述:
While attempting to make sure that $CVSROOT
existed, I executed
mkdir $CVSROOT
only to find the error:
'missing operand'
在尝试确保 仅查找错误: p>
'缺少操作数' p>
blockquote>
div> $ CVSROOT code>存在时,我执行了 p> \ n
mkdir $ CVSROOT
code> pre>
答
Try:
(The number is the permission you set)
mkdir("$CVSROOT", 0700);
And if it should be a string not a variable use:
mkdir('$CVSROOT', 0700);