PHP 无法识别 Windows XP 下的连接点(simlinks)

发布于 2024-09-30 00:31:18 字数 997 浏览 4 评论 0原文

我发现两个 在 Windows XP 中创建“simlinks”的工具(我知道它们不是真正的链接,但事实就是如此)。问题是它们都没有创建我可以与 WAMP 一起使用的东西。

因为我经常想要链接到存储库,所以我经常希望保持 www 文件夹主要包含 simlink。我想在 Windows 下执行相同的操作,但是当 Apache 识别 此工具 创建的内容时,我得到消息:致命错误:未知:无法打开所需的 'C:/wamp/www/cwa/something.php' (include_path='.;C:\wamp\bin\php\PHP53~1.0\pear;C PHP 中的 Unknown on line 0 中的 :\wamp\Zend\library') 和 C:/wamp/www/cwa/ 也未被 PHP 识别为目录。 (C:\wamp\www\cwa 应该是链接,顺便说一句)

我该如何解决这个问题? 这个工具似乎没有创建 Apache 可以识别的东西。有没有另一种工具可以同时被 Apache 和 PHP 识别?这是某种形式的 ini 或 conf 问题吗?


编辑

上面的两个工具位于这两个链接:
http://www.rekenwonder.com/linkmagic.htm
http://www.taranfx.com/create-symlink-in-windows

I've found two tools which create "simlinks" within Windows XP (I know they're not real links, but so it goes). The problem is that neither of them create something which I can use with WAMP.

Because I'll often want to link into a repository, I'll often want to keep the www folder contain mostly simlinks. I'd like to do the same under Windows but while Apache recognizes what this tool creates, I get the message: Fatal error: Unknown: Failed opening required 'C:/wamp/www/cwa/something.php' (include_path='.;C:\wamp\bin\php\PHP53~1.0\pear;C:\wamp\Zend\library') in Unknown on line 0 from PHP and C:/wamp/www/cwa/ is also not recognized as a directory by PHP either. (C:\wamp\www\cwa is supposed to be the link, BTW)

How do I fix this? This tool doesn't seem to create something which is recognized by Apache. Is there another tool which is recognized by both Apache and PHP? Is this some form of ini or conf issue?


edit

The two tools above are at these two links:
http://www.rekenwonder.com/linkmagic.htm
http://www.taranfx.com/create-symlink-in-windows

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

青柠芒果 2024-10-07 00:31:18

尝试创建硬链接而不是连接点。您可以使用 fsutil 命令。请参阅此处

Try making a hard link instead of a junction point. You can use the fsutil command. See here.

海螺姑娘 2024-10-07 00:31:18

我只是将这个问题标记为“已回答”,因为似乎没有任何文字,或者,如果有的话,这里没有人分享它。

唯一可行的选择是使用 Apache 的别名。我本来希望避免这种情况,因为我更喜欢尽可能少地修改conf和htaccess,但看起来这里没有选择。

I'm just going to mark this one as "answered" because there doesn't seem to be a word-around or, if there is, no one here has shared it.

The only other viable option is to use Apache's aliasing. I had hoped to avoid that because I prefer to modify conf's and htaccess as little as possible, but it looks like there isn't a choice here.

怎樣才叫好 2024-10-07 00:31:18

如果您愿意使用 PHP,那么它会识别连接点,但是似乎会发生奇怪的缓存行为。

If you are willing to use to work with PHP then it recognizes the junction points however there is an odd caching behavior that seems to occur.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文