<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # 靜態資源操作 一個基于流的原子操作并不需要實際的實例. 下面這些API僅僅使用URL執行這樣的操作: ```c int php_stream_stat_path(char *path, php_stream_statbuf *ssb); ``` 和前面的php_stream_stat()類似, 這個函數提供了一個對POSIX的stat()函數協議依賴的包裝. 要注意, 并不是所有的協議都支持URL記法, 并且即便支持也可能不能報告出statbuf結構體中的所有成員值. 一定要檢查php_stream_stat_path()失敗時的返回值, 0標識成功, 要知道, 不支持的元素返回時其值將是默認的0. ```c int php_stream_stat_path_ex(char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context); ``` 這個php_stream_url_stat()的擴展版本允許傳遞另外兩個參數. 第一個是flags, 它的值可以是下面的PHP_STERAM_URL_STAT_*(下面省略PHP_STREAM_URL_STAT_前綴)一族常量的按位或的結果. 還有一個是context參數, 它在其他的一些流函數中也有出現,我們將在第16章去詳細學習. <table> <tr> <td>LINK</td> <td>原始的php_stream_stat_path()對于符號鏈接或目錄將會進行解析直到碰到協議定義的結束資源. 傳遞PHP_STREAM_URL_STAT_LINK標記將導致php_stream_stat_path()返回請求資源的信息而不會進行符號鏈接的解析.(譯注: 我們可以這樣理解, 沒有這個標記, 底層使用stat(), 如果有這個標記,底層使用lstat(), 關于stat()和lstat()的區別, 請查看*nix手冊)</td> </tr> <tr> <td>QUIET</td> <td>默認情況下, 如果在執行URL的stat操作過程中碰到錯誤, 包括文件未找到錯誤, 都將通過php的錯誤處理機制觸發. 傳遞QUIET標記可以使得php_stream_stat_path()返回而不報告錯誤.</td> </tr> </table> ```c int php_stream_mkdir(char *path, int mode, int options, php_stream_context *context); int php_stream_rmdir(char *path, int options, php_stream_context *context); ``` 創建和刪除目錄也會如你期望的工作. 這里的options參數和前面的php_stream_open_wrapper()函數的同名參數含義一致. 對于php_stream_mkdir(), 還有一個參數mode用于指定一個八進制的值表明讀寫執行權限. ## links * [目錄](<preface.md>) * 14.2 [訪問流](<14.2.md>) * 14.4 [小結](<14.4.md>)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看