PHP symlink() fails on Windows 7(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 上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:PHP symlink() 在 Windows 7 上失败
基础教程推荐
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何替换eregi() 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
