PHP symlink() 在 Windows 7 上失败 [英] PHP symlink() fails on Windows 7

查看:39
本文介绍了PHP symlink() 在 Windows 7 上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP symlink() 函数在 Windows 7 上失败并出现错误:

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

Warning: symlink(): Cannot create symlink, error code(3) in C:xampphtdocs…libmodeldoctrineWebsite.class.php

这是一个使用 PHP 5.3.8 的 XAMPP 服务器.

It's a XAMPP server on with PHP 5.3.8.

来自 symlink() 文档:

From the symlink() documentation:

5.3.0 此功能现在可在 Windows 平台(Vista、Server 2008 或更高版本)上使用.

5.3.0 This function is now available on Windows platforms (Vista, Server 2008 or greater).

有什么想法/建议吗?

推荐答案

根据这个可能是 PHP 5.3 中的一个错误:

Might be a bug in PHP 5.3 according to this:

https://bugs.php.net/bug.php?id=48975

还有这个:

http://forum.wampserver.com/read.php?2,64011(回复#2)

也许你可以升级到 PHP 5.4 看看它是否有效?

Maybe you could upgrade to PHP 5.4 and see if it works?

这篇关于PHP symlink() 在 Windows 7 上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆