我应该打开什么终端来运行命令来修复php中的权限被拒绝错误?

I found the solution to fix "fopen(document.pdf): failed to open stream: Permission denied in C:\Program Files\VertrigoServ\www\Project\makePDF.php on line 8". It was suggested that to open terminal and run the command

sudo chmod filename.php

But i don't know which terminal should I open to run this command?

Please help me. I'll be very thankful to you.

Windows security settings is preventing you to access that file which is in program Files folder.

  1. First method You should note that The DocumentRoot and Directory directive directory should match. Your vhosts file inside apache->conf->extra should have the proper directory listing

<Directory "C:\Program Files\VertrigoServ\www\Project">
    Options Indexes FollowSymLinks Includes
    AllowOverride All
    Order Allow,Deny
    Allow from all
    Require all granted
    </Directory> 

  1. Install XAMPP in C Drive itself like C:/VertrigoServ instead of C:\Program Files\VertrigoServ\ . Program Files Directory require special permissions.
</div>

1)Right click the folder, click on Properties.

2)Click on the Security tab

3)Add the name Everyone to the user list.