久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

windows下php訪問網絡路徑

php access network path under windows(windows下php訪問網絡路徑)
本文介紹了windows下php訪問網絡路徑的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

在安裝在 Windows XP 計算機上的 PHP (XAMPP) 中我試圖讀取本地網絡服務器上存在的目錄.我使用 is_dir() 來檢查它是否是我可以讀取的目錄.

within PHP (XAMPP) installed on a Windows XP Computer Im trying to read a dir which exists on a local network server. Im using is_dir() to check whether it is a dir that I can read.

在 Windows 資源管理器中,我輸入 \serverdir 并顯示該目錄.當我映射網絡驅動器時,也可以使用 z:dir 訪問它.

In Windows Explorer I type \serverdir and that dir is being shown. When I map a network drive a can access it with z:dir as well.

在 PHP 中我有那個腳本:

In PHP I have that script:

<?php if( is_dir($dir){ echo 'success' } ) ?>

對于 $dir 我試過:

  • /server/dir
  • //server/dir
  • serverdir
  • \serverdir
  • \\server\dir

  • z:dir
  • z:\dir
  • z:/dir
  • z://dir

但我從來沒有成功過?任何的想法?謝謝

But I never get success? Any idea? thx

推薦答案

我通過更改服務器注冊表中的一些內容解決了這個問題,如本次討論的最后一個答案所述:

I solved it by changing some stuff in the registry of the server as explained in the last answer of this discussion:

http://bugs.php.net/bug.php?id=25805

無論如何都要感謝 VolkerK 和 Gumbo!我喜歡 stackoverflow 和他們很棒的人,他們幫助你的速度非常快!!

Thanks to VolkerK and Gumbo anyway! I love stackoverflow and their great people who help you so incredibly fast!!

編輯(取自 php.net):

EDIT (taken from php.net):

該服務對網絡資源的訪問受限,例如共享和管道,因為它沒有憑據并且必須使用 null 進行連接會議.以下注冊表項包含 NullSessionPipes 和NullSessionShares 值,用于指定管道和空會話可以連接到的共享:HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerParameters或者,您可以添加 REG_DWORD 值RestrictNullSessAccess 鍵值,設置為 0 允許所有空值會話以訪問在該機器上創建的所有管道和共享.`

The service has limited access to network resources, such as shares and pipes, because it has no credentials and must connect using a null session. The following registry key contains the NullSessionPipes and NullSessionShares values, which are used to specify the pipes and shares to which null sessions may connect: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerParameters Alternatively, you could add the REG_DWORD value RestrictNullSessAccess to the key and set it to 0 to allow all null sessions to access all pipes and shares created on that machine.`

將 RestrictNullSessAccess=0 添加到您的注冊表中.

add RestrictNullSessAccess=0 to your registery.

這篇關于windows下php訪問網絡路徑的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數組自動填充選擇框)
PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 亚洲精品国产电影 | 成人av影院 | 国产精品久久久久久久久久三级 | 色视频网站 | 毛片综合 | 麻豆av电影网 | 国产精品日韩高清伦字幕搜索 | 日韩精品专区在线影院重磅 | 一级片视频免费观看 | 欧美1区 | 一区免费看| 一区二区免费视频 | 男女又爽又黄视频 | 国产成人精品免费视频大全最热 | 奇米久久 | 日本久久精品 | 一区二区三区四区国产精品 | 国产精品毛片av | 欧美精品成人一区二区三区四区 | 野狼在线社区2017入口 | 男女污污网站 | 亚洲欧美视频一区 | 亚洲欧美日韩精品久久亚洲区 | 隔壁老王国产在线精品 | 日韩国产高清在线观看 | 男女又爽又黄视频 | 一区日韩| 武道仙尊动漫在线观看 | 亚洲视频www| 亚洲一一在线 | 天天拍天天色 | 色综合欧美 | 日韩av在线一区二区 | 97国产一区二区精品久久呦 | 高清av电影| 久久九九免费 | 夜夜操操操| 国产精品视频一二三区 | 免费观看黄a一级视频 | 国产精产国品一二三产区视频 | 中文一区|