PHP symlink() fails on Windows 7

后端 未结 3 1547
花落未央
花落未央 2020-12-11 10:55

PHP symlink() function fails on Windows 7 with the error:

Warning: symlink(): Cannot create symlink, error code(3) in C:\\xampp\\htdocs\\…\\lib\\model\\doct         


        
3条回答
  •  青春惊慌失措
    2020-12-11 11:29

    About PHP CLI on windows OS:
    Do not forget to start the console with Run as Administrator else symlink will return false and raise the following error:

    Warning: symlink(): Cannot create symlink, error code(1314)
    

提交回复
热议问题