PHP: fopen() Permission denied

I am confused with this code: test.php: when I execute it, I get an error: test.txt: where is the problem? Thanks a lot!I have found the problem,I use FC13,because of the protect of SELinux,some action is denied.So, I just need to get rid of the protect.

changing the owner of folder in linux

Use chown to change ownership and chmod to change rights. use the -R option to apply the rights for all files inside of a directory too. Note that both these commands just work for directories too. The -R option makes them also change the permissions for all files and directories inside of the directory. For example will change ownership (both user and group) … Read more

Laravel 5.2 Storage::makeDirectory($dir) is not creating directory

Well… I figured out what was going on. File::exists(public_path() . “/video/$user”) is looking for this: /home/ubuntu/workspace/site/public/video/N And Storage::makeDirectory(public_path() . “/video/$user”) is creating a directory in: /home/ubuntu/workspace/site/storage/app/public/video/N So I can go to site/config/filesystems.php and change the routes for app and app/public ; you can check them by using the helper storage_path(‘app’).But, instead, I decided to save the videos in the storage/app/public/video and storage/app/public/thumbnails, and I am getting some package’s … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)