Symfony2를 사용하여 응용 프로그램을 개발 중입니다. 내가 가진 문제는 폴더를 생성 할 때 생성 된 폴더가 sudo 권한을 가지고 있지 않은 엔티티에서 기능을 사용하는 경우 sudo 권한으로 직접 폴더를 생성하는 것이 어떻게 가능할까요? 내가 sudo는 권한을 만드는 방법을Symfony2 및 sudo 권한
protected function getUploadDirMark()
{
// get rid of the __DIR__ so it doesn't screw when displaying uploaded doc/image in the view.
return 'uploads/documents/'.$this->getIzenburua();
}
'uploads/documents/'.$this->getIzenburua();
폴더에는 sudo는 권한이없는,이 내 코드입니다. 감사.
어떻게 작성할 수 있습니까? return chmod ('uploads/documents/'.$ this-> getIzenburua(), 777); 그것은 할 수 없습니다. 오류를 표시합니다. 어떤 생각? – Haritz