首页 › 日存档 › 2009年10月23日

php递归创建文件夹

递归。
function createFolder($path)
{
if (!file_exists($path))
{
createFolder(dirname($path));
mkdir($path, 0777);
}
}
createFolder(“aa/bb/cc/dd/ee”);

在linux中出现there are stopped jobs 的解决方法

Dealing with Stopped Jobs
Sometimes when you try to logout, you’ll get a message saying there are “stopped jobs”. These stopped jobs are programs or processes which have been suspended by a ^Z (Ctrl – Z) command. You have to either make the job active again, or get it running properly in the “background” before you can logout.

Stopping a program is useful if you want to temporarily suspend working on one program so you can do something else.

To see a list of stopped jobs, type: 继续阅读 »